RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

63 regular expressions found in this category!

Expressions in category: Markup/Code

Change page:   |    Displaying page 4 of 4 pages; Items 61 to 63
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
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)/\*.*\*/
Description
Matches
/* .................... */ | /* imagine lots of lines here */
Non-Matches
*/ malformed opening tag */ | /* malformed closing tag /*
Author Rating: Not yet rated. Darren Neimke
Change page:   |    Displaying page 4 of 4 pages; Items 61 to 63

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