Regex Methods
The methods of the Regex class are listed here. For a complete list of Regex class members, see the Regex Members topic.
Public Methods
![]() CompileToAssembly | Overloaded. Compiles regular expressions and saves them to disk in a single assembly. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
![]() Escape Supported by the .NET Compact Framework. | Escapes a minimal set of metacharacters (\, *, +, ?, |, {, [, (,), ^, $, ., #, and white space) by replacing them with their escape codes. |
GetGroupNames Supported by the .NET Compact Framework. | Returns an array of capturing group names for the regular expression. |
GetGroupNumbers Supported by the .NET Compact Framework. | Returns an array of capturing group numbers that correspond to group names in an array. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | 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)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
GroupNameFromNumber Supported by the .NET Compact Framework. | Gets the group name that corresponds to the specified group number. |
GroupNumberFromName Supported by the .NET Compact Framework. | Returns the group number that corresponds to the specified group name. |
IsMatch Supported by the .NET Compact Framework. | Overloaded. Indicates whether the regular expression finds a match in the input string. |
Match Supported by the .NET Compact Framework. | Overloaded. Searches an input string for an occurrence of a regular expression and returns the precise result as a single Match object. |
Matches Supported by the .NET Compact Framework. | Overloaded. Searches an input string for all occurrences of a regular expression and returns all the successful matches as if Match were called numerous times. |
Replace Supported by the .NET Compact Framework. | Overloaded. Replaces all occurrences of a character pattern defined by a regular expression with a specified replacement character string. |
Split Supported by the .NET Compact Framework. | Overloaded. Splits an input string into an array of substrings at the positions defined by a regular expression match. |
ToString Supported by the .NET Compact Framework. | Overridden. Returns the regular expression pattern that was passed into the Regex constructor. |
![]() Unescape Supported by the .NET Compact Framework. | Unescapes any escaped characters in the input string. |
Protected Methods
Finalize Supported by the .NET Compact Framework. | Overridden. Forces a Regex object to free resources before the object is destroyed by the Garbage Collector.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
