Regex Methods

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The Regex type exposes the following members.

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Static member Escape Escapes a minimal set of characters (\, *, +, ?, |, {, [, (,), ^, $,., #, and white space) by replacing them with their escape codes. This instructs the regular expression engine to interpret these characters literally rather than as metacharacters.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetMatches(String) Searches the specified input string for all occurrences of a regular expression.
Public method GetMatches(array<String>[]()[][]) Searches the specified array for all occurrences of a regular expression.
Public method GetMatches(array<String>[]()[][], Int32, Int32) Searches the specified array for all occurrences of a regular expression, beginning at the specified starting position and ending at the specified length.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsMatch(String) Indicates whether the regular expression specified in the Regex constructor finds a match in a specified input string.
Public method IsMatch(String, Int32) Indicates whether the regular expression specified in the Regex constructor finds a match in the specified input string, beginning at the specified starting position in the string.
Public method Match(String) Searches the specified input string for the first occurrence of the regular expression specified in the Regex constructor.
Public method Match(String, Int32) Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position in the string.
Public method Static member Match(String, String) Searches the specified input string for the first occurrence of the specified regular expression.
Public method Static member Match(String, String, RegexOptions) Searches the input string for the first occurrence of the specified regular expression, using the specified matching options.
Public method Matches(String) Searches the specified input string for all occurrences of a regular expression.
Public method Matches(String, Int32) Searches the specified input string for all occurrences of a regular expression, beginning at the specified starting position in the string.
Public method Static member Matches(String, String) Searches the specified input string for all occurrences of a specified regular expression.
Public method Static member Matches(String, String, RegexOptions) Searches the specified input string for all occurrences of a specified regular expression, using the specified matching options.
Public method Replace(String, String) In a specified input string, replaces all strings that match a regular expression pattern with a specified replacement string.
Public method Replace(String, String, Int32, Int32) In a specified input substring, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.
Public method Split(String) Splits an input string into an array of substrings at the positions defined by a regular expression pattern specified in the Regex constructor.
Public method Split(String, Int32) Splits an input string a specified maximum number of times into an array of substrings, at the positions defined by a regular expression specified in the Regex constructor.
Public method Static member Split(String, String, RegexOptions) Splits an input string into an array of substrings at the positions defined by a specified regular expression pattern. Specified options modify the matching operation.
Public method Static member Split(Regex, String, Int32, Int32) Splits the input string at the positions defined by a specified regular expression pattern and with the specified options.
Public method Split(String, Int32, Int32, Int32) Splits an input string a specified maximum number of times into an array of substrings, at the positions defined by a regular expression specified in the Regex constructor.
Public method Static member Split(String, RegexOptions, String, Int32, Int32) Splits the input string at the positions defined by a specified regular expression pattern. Specified options modify the matching operation.
Public method Static member ToFullRegularExpression Converts a simplified regular expression to a full regular expression.
Public method ToString Returns the regular expression pattern that was passed into the Regex constructor. (Overrides Object..::..ToString()()()().)
Top
Show: