The following tables list the members exposed by RegexPatterns.
Name | Description | |
---|---|---|
CreditCard | This is generally not enought to fully validate a card, there are other ways to validate by using the build-in checksums. | |
FormatNameSpecifier | Matches a c-sharp style format specifier in a string "{Name-0,5:n}" with some additional changes. Used with StringUtils.Transform() you can provide your own String.Format(). The groups returned will be the following: "field" - An identifier may contain any alpha-numeric or one of these special characters: ('_', '-', or '.') "suffix" - Everything after the identifer and before the closing brace '}' "width" - The width part of the format is a number after a ',' and before ':' "format" - Everything after the the ':' and before the closing '}', note: escapes }} are not supported. | |
FormatSpecifier | Matches a c-sharp style format specifier in a string "{0,5:n}". The identifier may be any numeric set of characters. The groups returned will be "field", "suffix", "width", and "format". Used with StringUtils.Transform() you can provide your own String.Format(). | |
FullVersion | Matches a numeric version "1.2.3.4" up to 9 digits for a value | |
Guid | Matches a guid in the common forms used with the string constructor of the System.Guid type: "ca761232ed4211cebacd00aa0057b223" "ca761232-ed42-11ce-bacd-00aa0057b223" "CA761232-ED42-11CE-BACD-00AA0057B223" "{ca761232-ed42-11ce-bacd-00aa0057b223}" "(CA761232-ED42-11CE-BACD-00AA0057B223)" The following format is NOT support: "{0xCA761232, 0xED42, 0x11CE, {0xBA, 0xCD, 0x00, 0xAA, 0x00, 0x57, 0xB2, 0x23}}" | |
HtmlEntity | Finds html/xml entity references in text, test patterns: hex = #xae6f278 decimal = #1234567890 or named = lt | |
HttpUrl | Free-form matching of urls in plain text, from http://immike.net/blog/2007/04/06/5-regular-expressions-every-web-programmer-should-know/ | |
MakefileMacro | Matches a makefile macro name in text, i.e. "$(field:name=value)" where field is any alpha-numeric + ('_', '-', or '.') text identifier returned from group "field". the "replace" group contains all after the identifier and before the last ')'. "name" and "value" groups match the name/value replacement pairs. | |
Version | Matches a numeric version with 2, 3, or 4 parts: "1.2", "1.2.3", or "1.2.3.4" up to 9 digits for a value | |
VSErrorMessage | Matches VisualStudio style error/warning format. The groups returned are as follows: path = The file path (due caution should be taken to ensure this is a file path) line = The line number if any pos = The line position if any error = Was it tagged as an error? warning = Was it tagged as a warning? id = The error/warning id if provided message = The remainder of the text line |
Reference
RegexPatterns ClassCSharpTest.Net.Utils Namespace