NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Regex Methods

The methods of the Regex class are listed below. For a complete list of Regex class members, see the Regex Members topic.

Public:

Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
Escape  
GetGroupNames  
GetGroupNumbers  
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
GroupNameFromNumber Retrieves a group name that corresponds to a group number.
GroupNumberFromName Returns a group number that corresponds to a group name.
IsMatch Overloaded.
Match Overloaded.

The caller can optionally specify a starting position (via startpos). If not specified, the default startpos is at the beginning or end of the interval (the beginning if the Match is left-to-right, and the end if right-to-left).

Note that a match can be restricted so that it does not scan by anchoring the regular expression with a "\G" (at the left for a left-to-right pattern, or at the right for a right-to-left pattern). This restricts the match so that it must start exactly at startpos.

When a Match is left-to-right (the default), the match and the scan proceed rightward, starting at the character at startpos. When a Match is right-to-left (constructed with the "r" option), the match and scan are in the opposite direction and begin with the character at startpos-1.

Matches Overloaded.
Replace Overloaded.
Split Overloaded. The Split methods are similar to String.Split, except that they split the string at a delimiter determined by a regular expression instead of a set of characters. If count is specified, the string is split into at most count strings (the last string containing the unsplit remainder of the string); a count value of zero provides the default behavior of splitting as many times as possible. If startat is specified, the first delimiter is searched for starting at the specified point (this can be used, for example, for skipping leading whitespace).
ToString Returns the regular expression pattern passed into the constructor
Unescape Unescapes any escaped characters in the input string.

Protected:

Finalize [To be supplied.]
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Regex Class | System.Text.RegularExpressions Namespace