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

Please support RegExLib Sponsors

Sponsors

Expressions by User

Change page:   |    Displaying page 3 of 3 pages; Items 41 to 42
Title Test Details Price
Expression
^[$]?[0-9]*(\.)?[0-9]?[0-9]?$
Description
Should match prices with or without a dollar sign.
Matches
4.42 | $4.42
Non-Matches
asdf
Author Rating: The rating for this expression. Steven Smith
Title Test Details Image File Extension
Expression
.*(\.[Jj][Pp][Gg]|\.[Gg][Ii][Ff]|\.[Jj][Pp][Ee][Gg]|\.[Pp][Nn][Gg])
Description
This expression should work to validate that an uploaded file's extension is either jpg, gif, or png.
Matches
foo.gif|foo.jpg|foo.png
Non-Matches
foo.txt|foo.zip|foo.exe
Author Rating: Not yet rated. Steven Smith
Change page:   |    Displaying page 3 of 3 pages; Items 41 to 42

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