CSharpTest.Net
RegexPatterns Class Members
See Also  Fields  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Utils Namespace : RegexPatterns Class


Glossary Item Box

The following tables list the members exposed by RegexPatterns.

Public Fields

 NameDescription
Public Fieldstatic (Shared in Visual Basic)CreditCardThis is generally not enought to fully validate a card, there are other ways to validate by using the build-in checksums.  
Public Fieldstatic (Shared in Visual Basic)FormatNameSpecifierMatches 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.  
Public Fieldstatic (Shared in Visual Basic)FormatSpecifierMatches 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().  
Public Fieldstatic (Shared in Visual Basic)FullVersionMatches a numeric version "1.2.3.4" up to 9 digits for a value  
Public Fieldstatic (Shared in Visual Basic)GuidMatches 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}}"  
Public Fieldstatic (Shared in Visual Basic)HtmlEntityFinds html/xml entity references in text, test patterns: hex = #xae6f278 decimal = #1234567890 or named = lt  
Public Fieldstatic (Shared in Visual Basic)HttpUrlFree-form matching of urls in plain text, from http://immike.net/blog/2007/04/06/5-regular-expressions-every-web-programmer-should-know/  
Public Fieldstatic (Shared in Visual Basic)MakefileMacroMatches 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.  
Public Fieldstatic (Shared in Visual Basic)VersionMatches 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  
Public Fieldstatic (Shared in Visual Basic)VSErrorMessageMatches 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  
Top

See Also

Generated with Document! X 2011 by Innovasys