Search found 3 matches

by jasonx
Sat Oct 22, 2005 9:30 am
Forum: Regex
Topic: Matching Media Files and Image Sources
Replies: 4
Views: 3648

feyd that produces the same result as my original regex. Some sample html I am testing with is below <a href="2.mpg"><img src="2.jpg" border="0" class="thumbs"></a></div></td> <span class="style4"> <a href="text.html">testing<br></a></span>...
by jasonx
Sat Oct 22, 2005 9:09 am
Forum: Regex
Topic: Matching Media Files and Image Sources
Replies: 4
Views: 3648

cheers feyd that solved my problem. One other question I have is that my regex is matching things like: <a href=link.html>more html</a><a href=something.mpg><img src=some.jpg></a> The part of my regex that is causing this is <a.*href=[\"\'](.*)(.mpg|.mpeg|.mov|.avi|.wmv)[\"\'].*> How would...
by jasonx
Sat Oct 22, 2005 4:36 am
Forum: Regex
Topic: Matching Media Files and Image Sources
Replies: 4
Views: 3648

Matching Media Files and Image Sources

I am trying to write a regex which finds links in a file and the image the link represents. The format of what I am trying to match may look like the following: <a href="some.mpg"><img src="some.jpg"></a> My problem is that other tags may be present. Also the html code may span m...