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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 4 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 4
Title Test Details Pattern Title
Expression
^[0-9A-Za-z_ ]+(.[jJ][pP][gG]|.[gG][iI][fF])$
Description
Matches HTML image leaf filenames.
Matches
good.gif | go d.GIf | goo_d.jPg
Non-Matches
junk | bad.bad.gif | slash\gif.
Author Rating: Not yet rated. Geoffrey Swenson
Title Test Details HTML Image src
Expression
<[iI][mM][gG][a-zA-Z0-9\s=".]*((src)=\s*(?:"([^"]*)"|'[^']*'))[a-zA-Z0-9\s=".]*/*>(?:</[iI][mM][gG]>)*
Description
Great for extracting out all the image src attributes.
Matches
<img src="gif.gif" ></img>|<img id="blah" src="gif"></img>|<img src="gif.gif" id="freaky">|</img>|<img src="gif.gif" />|<img src="gif.gif"/>|<img class="FloatLeft Margin" id="calendarButton81" src="calendar.gif" alt="Calendar Button" />
Non-Matches
<input id="" value=""/>
Author Rating: The rating for this expression. Erik
Title Test Details Parse HTML images
Expression
"<[ \t]*[iI][mM][gG][ \t]*[sS][rR][cC][ \t]*=[ \t]*['\"]([^'\"]+)"
Description
Get all images in html string, ignore white space, tabs and is case insensitive. the result is iMG sRc ="ricardo.gif, after this just split the string and Enjoy it!
Matches
"<html><iMG sRc = \"ricardo.gif\" alt=\"1\"/><img src=\"whatever.gif\" /><img src =\"teste.gif\" alt=\"1\"/></html>"
Non-Matches
i don´t know
Author Rating: The rating for this expression. Ricardo Deus
Title Test Details HTML image tag
Expression
<img\s((width|height|alt|align|style)="[^"]*"\s)*src="(\/?[a-z0-9_-]\/?)+\.(png|jpg|jpeg|gif)"(\s(width|height|alt|align|style)="[^"]*")*\s*\/>
Description
Will match an image with the most common attributes.
Matches
<img width="80" height="80" style="border: none" src="img/fluffy.jpg" alt="cat"/>
Non-Matches
<img src="img/fluffy" >
Author Rating: Not yet rated. Jerry H
   Displaying page 1 of 1 pages; Items 1 to 4

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