Title |
Test
Find
Pattern Title
|
Expression |
<img([^>]*[^/])> |
Description |
Use this along with this replacement string <img\1 /> to convert image tags to XHTML compliant image tags.
|
Matches |
<img src="bob"> |
Non-Matches |
<img src="bob" /> |
Author |
Rating:
Murray Roke
|
Source |
|
Your Rating |
|
Title: Does not account for src with http urls
Name: Baba
Date: 1/25/2006 4:53:12 PM
Comment:
This will not work with image urls of the type since they have '/' character in the src value.
<img src="http://www.sampleweb.com/sample.gif"/>
I am still learning regex. I think <img([^>]*(?(/>)))> will overcome that problem.
Thanks,
Baba
Title: Don't use regex to parse HTML
Name: Randal L. Schwartz
Date: 6/2/2005 2:25:44 PM
Comment:
Don't use regex to parse HTML.