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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(?<attributeName>\w+?)= (\"+(?<attributeValue>[\w\.\s\:\;\/\\@\-\=\&\?]*)\"+| (?<attributeValue>[\w\.\:\;\/\\@\-\=\&\?]*)?)
Description
This pattern match all attributes,with or without double quote. Don't match attributes with spaces and without double quote and without value
Matches
href=http://www.someserver.com?id=5&name=charlie | alt="some description" | style=&quo
Non-Matches
<option selected>
Author Rating: The rating for this expression. Francesco Smelzo
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: Doesn't work!
Name: Dan
Date: 5/6/2005 10:01:23 AM
Comment:
This does not work, doesn't match META content, 'on' jscript attribs or many href attribs!!


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