Title |
Test
Find
replace html tags with valid xhtml
|
Expression |
(<input )(.*?)(>) |
Description |
Finds all <input attrib1="value1" attrib2="value2" ... > tags. You can make it end with "/>" for xhtml compatibility replacing with the expression "<input $2 />". You can repeat it with other tags like <img /> or <br / > |
Matches |
<input attrib1="value1" attrib2="value2" > |
Non-Matches |
any other tag |
Author |
Rating:
Not yet rated.
Mauricio Venanzoni
|
Source |
|
Your Rating |
|
Title: Broken - do not parse HTML with a simple regex
Name: Randal L. Schwartz
Date: 6/16/2006 4:02:29 PM
Comment:
This fails when an attribute contains a greater-than.