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]*\bauthor\b[^>]*>
Description
This expression will match the corresponding XML/HTML elements opening and closing tags. Useful to handle documents fragments, without loading an XML DOM.
Matches
<author name="Daniel"> | </sch:author> | <pp:author name="Daniel"
Non-Matches
<other> | </authors> | <work>author</work>
Author Rating: Not yet rated. Daniel Cazzulino
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: how to match an xml opening tag with attributes
Name: venkata
Date: 5/13/2013 3:40:46 AM
Comment:
hi, I need to match only an xml opening tag with or without attributes. But this matches both opening and closing tags. Could you please help me?


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