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 1
Title Test Details Pattern Title
Expression
(.*\.jpe?g|.*\.JPE?G)
Description
I just couldn't find any simple expression to check if an entered value is a jp(e)g. If you're using this to check for e.g. mp3, just use the following: (.*\mp3|.*\.MP3) This expression is not really stable, cause it will also match file.jpg.mp3 or stuff like that.
Matches
*.JPG | *.jpeg
Non-Matches
.gif
Author Rating: The rating for this expression. N Verlaan
   Displaying page 1 of 1 pages; Items 1 to 1

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