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 6
Title Test Details Font Sizes
Expression
^\d+\x20*([pP][xXtT])?$
Description
It can be used to validate Font Sizes. Thanks to Gideon Engelberth for the shorter version of my original expression.
Matches
1px | 100 PT | 20Px
Non-Matches
1abc | px | 1 sdfs
Author Rating: Not yet rated. Vincent Faller
Title Test Details Alphanumeric Expression
Expression
^[a-zA-Z0-9\s]+$
Description
Alphanumeric expression with spaces
Matches
123asd | 111 ee11e | 223 eeddd23
Non-Matches
12' ggg | <>dfdg 444 | dfgdfg/dfgd
Author Rating: The rating for this expression. Vincent Faller
Title Test Details Special Characters
Expression
^(a-z|A-Z|0-9)*[^#$%^&*()']*$
Description
Does not allow these characters in a string #$%^&*()'
Matches
Test | Whatever Text | D://folder/file.ext
Non-Matches
word's | test# | (something)
Author Rating: The rating for this expression. Vincent Faller
Title Test Details Currency
Expression
^\$( )*\d*(.\d{1,2})?$
Description
Validates US currency but allows for spaces between the dollar sign and dollar amount. If there is cents the period validates to two decimal places
Matches
$100.00 | $100 | $10.25
Non-Matches
100. | $10.233 | $10.
Author Rating: Not yet rated. Vincent Faller
Title Test Details International Phone Pattern
Expression
^(1\s*[-\/\.]?)?(\((\d{3})\)|(\d{3}))\s*([\s-./\\])?([0-9]*)([\s-./\\])?([0-9]*)$
Description
This pattern matches most international phone numbers using various versions of phone number patters.
Matches
(305) 555-1234 | 305-555-1234 | 305 555 1234 | 011-52-71405555
Non-Matches
ABCD
Author Rating: Not yet rated. Vincent Faller
Title Test Details Decimal Pattern
Expression
^(\d{1,8}|(\d{0,8}\.{1}\d{1,2}){1})$
Description
Validates a decimal with up to 8 whole places and up to two decimal places
Matches
1 | 1.22 | 12345678.11 | .34
Non-Matches
123456789 | 1.223234 | 123456789.11
Author Rating: Not yet rated. Vincent Faller
   Displaying page 1 of 1 pages; Items 1 to 6

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