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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: moment yet
Name: King Out
Date: 4/14/2005 9:54:48 PM
Comment:
i do'nt understand ('+')


Title: <script language="javascript">alert('tsa');</script> Does not capture each attribute seperately
Name: sfe
Date: 3/30/2005 8:07:42 AM
Comment:
Does not capture each attribute seperately


Title: <img src="truc">|||<
Name: <img src="truc">|||<
Date: 11/27/2004 1:42:37 AM
Comment:
<img src="truc">|||<


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