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 PNG images
Expression
[\w\-_\+\(\)]{0,}[\.png|\.PNG]{4}
Description
This expression matches exclusively .png files. Filenames may contain hyphens, underscores, plusses or brackets, and may be both lower and uppercase.
Matches
my_image.png | my-image.png | DSC00481.PNG
Non-Matches
some.image.png | some_image.jpg | some-image.gif
Author Rating: Not yet rated. Pim Stoit
Title Test Details Valid YouTube links
Expression
(http://)?(www\.)?(youtube|yimg|youtu)\.([A-Za-z]{2,4}|[A-Za-z]{2}\.[A-Za-z]{2})/(watch\?v=)?[A-Za-z0-9\-_]{6,12}(&[A-Za-z0-9\-_]{1,}=[A-Za-z0-9\-_]{1,})*
Description
Matches only valid YouTube links. This includes directly linked videos (yimg) and using YouTube's shortening service (youtu.be). Also supports local domains, like youtube.nl, youtube.de, youtube.co.uk, etc.
Matches
www.youtube.co.uk/watch?v=KUlv7qraZaM | http://www.yimg.com/watch?v=KUlv7qraZaM | http://www.youtube.com/watch?v=apxKFXJ8jSg&feature=relmfu | youtu.be/apxKFXJ8jSg
Non-Matches
youtube.com/watch/v=apxKFXJ8jSg
Author Rating: Not yet rated. Pim Stoit
   Displaying page 1 of 1 pages; Items 1 to 2

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