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 Pattern Title
Expression
<[iI][mM][gG]([^>]*[^/>]*[/>]*[>])
Description
This is a derivation of a few other image tag regex patterns I found on the site that didn't seem to work. This is my first regex, so if I did this wrong - apologies in advance! It works for me...
Matches
<img src="/images/foo.gif" /> | <img src="/images/foo.gif">
Non-Matches
unknown
Author Rating: Not yet rated. Dain White
Title Test Details Pattern Title
Expression
<[iI][fF][rR][aA][mM][eE]([^>]*[^/>]*[/>]*[>])
Description
My second ever regex - a derivation of an image tag pattern, use in conjunction with <[iI][mM][gG]([^>]*[^/>]*[/>]*[>]) to remove advertisements from RSS feeds. Whee!
Matches
<IFRAME ...></IFRAME>
Non-Matches
unknown
Author Rating: Not yet rated. Dain White
   Displaying page 1 of 1 pages; Items 1 to 2

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