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 2
Title Test Details Pattern Title
Expression
<([^\s>]*)(\s[^<]*)>
Description
grab all tags attributes... &lt;img src=&quot;truc&quot;&gt; returns : &lt; (1:img) (2: src=&quot;truc&quot;) &gt; i use it to clean html pages to grab infos... use a RegEx Replace with &quot;&lt;$1&gt;&quot; to keep only tags codes...
Matches
<img src="truc"> | <body background='...'> | <p align='left'>
Non-Matches
<br> | </body> | <p>
Author Rating: Not yet rated. Tanguy Pruvot
Title Test Details Pattern Title
Expression
<([^<>\s]*)(\s[^<>]*)?>
Description
All tags in first submatche All attributes in second one...
Matches
<td class="TD2"> | <!-- comment --> | </table>
Non-Matches
19-Fev-2002 - 19h00 | New Changes : | ...
Author Rating: Not yet rated. Tanguy Pruvot
   Displaying page 1 of 1 pages; Items 1 to 2

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