RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details TLD from URL
Expression
([.])([a-z,1-9]{3,4})(\/)
Description
Returns the TLD from a URL.
Matches
.com/ .net/ .biz/ .123/ .mobi/
Non-Matches
.co.uk/ .org.uk/
Author Rating: Not yet rated. Alistair MacDonald
Title Test Details Single Line CSS
Expression
(?<!})\n
Description
This small regular expression strips newline characters from a CSS file, except where preceded by a right-curly-bracket/brace. This enhances the 'scanability' of your CSS, saving scroll time.
Matches
#branding\n{\ncolor:red\n}\n
Non-Matches
#branding{color:red}
Author Rating: Not yet rated. Alistair MacDonald
   Displaying page 1 of 1 pages; Items 1 to 2

Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials