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 1
Title Test Details replace html tags with valid xhtml
Expression
(<input )(.*?)(>)
Description
Finds all &lt;input attrib1="value1" attrib2="value2" ... &gt; tags. You can make it end with "/&gt;" for xhtml compatibility replacing with the expression "&lt;input $2 /&gt;". You can repeat it with other tags like &lt;img /&gt; or &lt;br / &gt;
Matches
&lt;input attrib1="value1" attrib2="value2" &gt;
Non-Matches
any other tag
Author Rating: Not yet rated. Mauricio Venanzoni
   Displaying page 1 of 1 pages; Items 1 to 1

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