Regex Methods

 

Namespace:   System.Text.RegularExpressions
Assembly:  System (in System.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCompileToAssembly(RegexCompilationInfo[], AssemblyName)

Compiles one or more specified Regex objects to a named assembly.

System_CAPS_pubmethodSystem_CAPS_staticCompileToAssembly(RegexCompilationInfo[], AssemblyName, CustomAttributeBuilder[])

Compiles one or more specified Regex objects to a named assembly with the specified attributes.

System_CAPS_pubmethodSystem_CAPS_staticCompileToAssembly(RegexCompilationInfo[], AssemblyName, CustomAttributeBuilder[], String)

Compiles one or more specified Regex objects and a specified resource file to a named assembly with the specified attributes.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticEscape(String)

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.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetGroupNames()

Returns an array of capturing group names for the regular expression.

System_CAPS_pubmethodGetGroupNumbers()

Returns an array of capturing group numbers that correspond to group names in an array.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGroupNameFromNumber(Int32)

Gets the group name that corresponds to the specified group number.

System_CAPS_pubmethodGroupNumberFromName(String)

Returns the group number that corresponds to the specified group name.

System_CAPS_protmethodInitializeReferences()

This API supports the product infrastructure and is not intended to be used directly from your code. Used by a Regex object generated by the CompileToAssembly method.

System_CAPS_pubmethodIsMatch(String)

Indicates whether the regular expression specified in the Regex constructor finds a match in a specified input string.

System_CAPS_pubmethodIsMatch(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.

System_CAPS_pubmethodSystem_CAPS_staticIsMatch(String, String)

Indicates whether the specified regular expression finds a match in the specified input string.

System_CAPS_pubmethodSystem_CAPS_staticIsMatch(String, String, RegexOptions)

Indicates whether the specified regular expression finds a match in the specified input string, using the specified matching options.

System_CAPS_pubmethodSystem_CAPS_staticIsMatch(String, String, RegexOptions, TimeSpan)

Indicates whether the specified regular expression finds a match in the specified input string, using the specified matching options and time-out interval.

System_CAPS_pubmethodMatch(String)

Searches the specified input string for the first occurrence of the regular expression specified in the Regex constructor.

System_CAPS_pubmethodMatch(String, Int32)

Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position in the string.

System_CAPS_pubmethodMatch(String, Int32, Int32)

Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position and searching only the specified number of characters.

System_CAPS_pubmethodSystem_CAPS_staticMatch(String, String)

Searches the specified input string for the first occurrence of the specified regular expression.

System_CAPS_pubmethodSystem_CAPS_staticMatch(String, String, RegexOptions)

Searches the input string for the first occurrence of the specified regular expression, using the specified matching options.

System_CAPS_pubmethodSystem_CAPS_staticMatch(String, String, RegexOptions, TimeSpan)

Searches the input string for the first occurrence of the specified regular expression, using the specified matching options and time-out interval.

System_CAPS_pubmethodMatches(String)

Searches the specified input string for all occurrences of a regular expression.

System_CAPS_pubmethodMatches(String, Int32)

Searches the specified input string for all occurrences of a regular expression, beginning at the specified starting position in the string.

System_CAPS_pubmethodSystem_CAPS_staticMatches(String, String)

Searches the specified input string for all occurrences of a specified regular expression.

System_CAPS_pubmethodSystem_CAPS_staticMatches(String, String, RegexOptions)

Searches the specified input string for all occurrences of a specified regular expression, using the specified matching options.

System_CAPS_pubmethodSystem_CAPS_staticMatches(String, String, RegexOptions, TimeSpan)

Searches the specified input string for all occurrences of a specified regular expression, using the specified matching options and time-out interval.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodReplace(String, MatchEvaluator)

In a specified input string, replaces all strings that match a specified regular expression with a string returned by a MatchEvaluator delegate.

System_CAPS_pubmethodReplace(String, MatchEvaluator, Int32)

In a specified input string, replaces a specified maximum number of strings that match a regular expression pattern with a string returned by a MatchEvaluator delegate.

System_CAPS_pubmethodReplace(String, MatchEvaluator, Int32, Int32)

In a specified input substring, replaces a specified maximum number of strings that match a regular expression pattern with a string returned by a MatchEvaluator delegate.

System_CAPS_pubmethodReplace(String, String)

In a specified input string, replaces all strings that match a regular expression pattern with a specified replacement string.

System_CAPS_pubmethodReplace(String, String, Int32)

In a specified input string, replaces a specified maximum number of strings that match a regular expression pattern with a specified replacement string.

System_CAPS_pubmethodReplace(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.

System_CAPS_pubmethodSystem_CAPS_staticReplace(String, String, MatchEvaluator)

In a specified input string, replaces all strings that match a specified regular expression with a string returned by a MatchEvaluator delegate.

System_CAPS_pubmethodSystem_CAPS_staticReplace(String, String, MatchEvaluator, RegexOptions)

In a specified input string, replaces all strings that match a specified regular expression with a string returned by a MatchEvaluator delegate. Specified options modify the matching operation.

System_CAPS_pubmethodSystem_CAPS_staticReplace(String, String, MatchEvaluator, RegexOptions, TimeSpan)

In a specified input string, replaces all substrings that match a specified regular expression with a string returned by a MatchEvaluator delegate. Additional parameters specify options that modify the matching operation and a time-out interval if no match is found.

System_CAPS_pubmethodSystem_CAPS_staticReplace(String, String, String)

In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string.

System_CAPS_pubmethodSystem_CAPS_staticReplace(String, String, String, RegexOptions)

In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string. Specified options modify the matching operation.

System_CAPS_pubmethodSystem_CAPS_staticReplace(String, String, String, RegexOptions, TimeSpan)

In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string. Additional parameters specify options that modify the matching operation and a time-out interval if no match is found.

System_CAPS_pubmethodSplit(String)

Splits an input string into an array of substrings at the positions defined by a regular expression pattern specified in the Regex constructor.

System_CAPS_pubmethodSplit(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.

System_CAPS_pubmethodSplit(String, 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. The search for the regular expression pattern starts at a specified character position in the input string.

System_CAPS_pubmethodSystem_CAPS_staticSplit(String, String)

Splits an input string into an array of substrings at the positions defined by a regular expression pattern.

System_CAPS_pubmethodSystem_CAPS_staticSplit(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.

System_CAPS_pubmethodSystem_CAPS_staticSplit(String, String, RegexOptions, TimeSpan)

Splits an input string into an array of substrings at the positions defined by a specified regular expression pattern. Additional parameters specify options that modify the matching operation and a time-out interval if no match is found.

System_CAPS_pubmethodToString()

Returns the regular expression pattern that was passed into the Regex constructor.(Overrides Object.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticUnescape(String)

Converts any escaped characters in the input string.

System_CAPS_protmethodUseOptionC()

This API supports the product infrastructure and is not intended to be used directly from your code. Used by a Regex object generated by the CompileToAssembly method.

System_CAPS_protmethodUseOptionR()

This API supports the product infrastructure and is not intended to be used directly from your code. Used by a Regex object generated by the CompileToAssembly method.

System_CAPS_protmethodSystem_CAPS_staticValidateMatchTimeout(TimeSpan)

This API supports the product infrastructure and is not intended to be used directly from your code. Checks whether a time-out interval is within an acceptable range.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code. Populates a SerializationInfo object with the data necessary to deserialize the current Regex object.

Return to top
Show: