Метод | Описание | |
---|---|---|
IsMatch ( string input, |
Indicates whether the regular expression finds a match in the input string.
|
|
Match ( string input, |
Searches the specified input string for the first occurrence of the specified regular expression.
|
|
Matches ( string input, |
Searches the specified input string for all occurrences of a specified regular expression.
|
|
Replace ( string input, |
In a specified input string, replaces all strings that match a specified regular expression with a specified replacement string.
|
|
Split ( string input, |
Splits an input string into an array of substrings at the positions defined by a regular expression pattern.
|
public IsMatch ( string input, |
||
input | string | The string to search for a match. |
pattern | The regular expression pattern to match. | |
Результат | bool |
public Match ( string input, |
||
input | string | The string to search for a match. |
pattern | The regular expression pattern to match. | |
Результат |
public Matches ( string input, |
||
input | string | The string to search for a match. |
pattern | The regular expression pattern to match. | |
Результат |
public Replace ( string input, |
||
input | string | The string to search for a match. |
pattern | The regular expression pattern to match. | |
replacement | string | The replacement string. |
Результат | string |
public Split ( string input, |
||
input | string | The string to search for a match. |
pattern | The regular expression pattern to match. | |
Результат | string[] |