Displaying page
of
pages;
Items to
Title |
Test
Details
.Net type name with full assembly name
|
Expression |
^(?<type>(\w+(\.?\w+)+))\s*,\s*(?<assembly>[\w\.]+)(,\s?Version=(?<version>\d+\.\d+\.\d+\.\d+))?(,\s?Culture=(?<culture>\w+))?(,\s?PublicKeyToken=(?<token>\w+))?$ |
Description |
.Net full type name with full assembly name |
Matches |
aaa.bbb.ccc, Aaa, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
Non-Matches |
Aaa, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null |
Author |
Rating:
Not yet rated.
Sercan AYYILDIZ
|
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 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
|
Title |
Test
Details
Java method headers
|
Expression |
(?:@[A-Z]\w*\s+)*(?:(?:public|private|protected)\s+)?(?:(?:(?:abstract|final|native|transient|static|synchronized)\s+)*(?:<(?:\?|[A-Z]\w*)(?:\s+(?:extends|super)\s+[A-Z]\w*)?(?:(?:,\s*(?:\?|[A-Z]\w*))(?:\s+(?:extends|super)\s+[A-Z]\w*)?)*>\s+)?(?:(?:(?:[A-Z]\w*(?:<[A-Z]\w*>)?|int|float|double|char|byte|long|short|boolean)(?:(?:\[\]))*)|void)+)\s+(([a-zA-Z]\w*)\s*\(\s*(((?:[A-Z]\w*(?:<(?:\?|[A-Z]\w*)(?:\s+(?:extends|super)\s+[A-Z]\w*)?(?:(?:,\s*(?:\?|[A-Z]\w*))(?:\s+(?:extends|super)\s+[A-Z]\w*)?)*>)?|int|float|double|char|boolean|byte|long|short)(?:(?:\[\])|\.\.\.)?\s+[a-z]\w*)(?:,\s*((?:[A-Z]\w*(?:<[A-Z]\w*>)?|int|float|double|char|byte|long|short|boolean)(?:(?:\[\])|\.\.\.)?\s+[a-z]\w*))*)?\s*\)) |
Description |
\1 references the method signature (eg main(String[] args)), \2 references the method name (eg main), \3 references the args (eg String[] args), and \4 and up reference each arg in turn (including type names). Supports @interfaces, java keywords/primitives, generic classes (including bounded and unbounded parameters), varargs, and array classes, but due to recursion limitations, generic types can only go one level deep (List<String> is ok, but List<List<String>> isn't).
Does not match Constructors. |
Matches |
public static void main(String... args) |
Non-Matches |
public static void Main(string... args) |
Author |
Rating:
matt g
|
Displaying page
of
pages;
Items to