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 3
Title Test Details 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
Title Test Details Pattern Title
Expression
^(?<assembly>[\w\.]+)(,\s?Version=(?<version>\d+\.\d+\.\d+\.\d+))?(,\s?Culture=(?<culture>\w+))?(,\s?PublicKeyToken=(?<token>\w+))?$
Description
Matches .NET assembly names, and captures named groups for easy parsing and constructing of an AssemblyName object. Captured groups are: assembly, version, culture and token.
Matches
mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 | My.Assembly
Non-Matches
My Assembly | My.Assembly, Blah | My.Assembly, 1.0
Author Rating: Not yet rated. Daniel Cazzulino
   Displaying page 1 of 1 pages; Items 1 to 3

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