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 .Net Framework Type Name
Expression
^(([A-Za-z][A-Za-z0-9.+]*?){1,}?)(,\s?([^/\\:*?"<>|]*((,\s?(Version=(\d\.?){1,4}|Culture=(neutral|\w{2}-\w{2})|PublicKeyToken=[a-f0-9]{16})(,\s?)?){3}|))){0,1}$
Description
Matches a .Net Framework type name. This expression also matches non-strong named types such as: Namespace.Class and Namespace.Class, Assembly
Matches
Namespace.Class, Assembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0000000000000000
Non-Matches
Namespace.Class, Assembly, Version=1.0.0.0, Culture=neutral
Author Rating: Not yet rated. Justin Long
Title Test Details .Net Assembly Name (With Named Groups)
Expression
^(?<Assembly>(?<AssemblyName>[^\W/\\:*?"<>|,]+)(?:(?:,\s?(?:(?<Version>Version=(?<VersionValue>(?:\d{1,2}\.?){1,4}))|(?<Culture>Culture=(?<CultureValue>neutral|\w{2}-\w{2}))|(?<PublicKeyToken>PublicKeyToken=(?<PublicKeyTokenValue>[A-Fa-f0-9]{16})))(?:,\s?)?){3}|))$
Description
Matches a .Net assembly name and groups each part of the name using named groups (not supported by all regex engines).
Matches
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Non-Matches
mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=INVALIDTOKEN
Author Rating: Not yet rated. Justin Long
Title Test Details .Net Framework Full Type Name (With Named Groups)
Expression
^(?<Namespace>(?:[\w][\w\d]*\.?)*)\.(?<Class>[\w][\w\d<>]*(?:(?:\+[\w][\w\d<>]*)+|))(?:|,\W?(?<Assembly>(?<AssemblyName>[^\W/\\:*?"<>|]+)(?:$|(?:,\W?(?:(?<Version>Version=(?<VersionValue>(?:\d{1,2}\.?){1,4}))|(?<Culture>Culture=(?<CultureValue>neutral|\w{2}-\w{2}))|(?<PublicKeyToken>PublicKeyToken=(?<PublicKeyTokenValue>[A-Fa-f0-9]{16})))(?:,\W?)?){3})))$
Description
Matches a full .Net type name and breaks all the parts of the type and assembly into named groups (not supported by all regex engines)
Matches
System.Collections.Generic.List<T>+Enumerator<T>, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Non-Matches
System.Int32,
Author Rating: Not yet rated. Justin Long
   Displaying page 1 of 1 pages; Items 1 to 3

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