Метод | Описание | |
---|---|---|
BuildFrom ( string text, RegexOptions options = RegexOptions.None ) : |
Builds a new CompiledRegex instance from the specified raw text. Reserved characters are automatically escaped, causing them to serve as required components of the resulting pattern. Whitespace is always interpreted to be of variable length (i.e. all contiguous whitespace blocks are replaced with the \s+ search term). Useful in scenarios were existing text is used to match against other values.
|
|
CompiledRegex ( string pattern, RegexOptions options = RegexOptions.None ) : System |
Initializes a new instance of the CompiledRegex class.
|
|
DictionaryMatch ( string input, bool removeSystemGroups = true ) : string>.IDictionary |
Gets the first pattern match as a key-value dictionary. Useful with patterns that use named groups.
|
|
DictionaryMatches ( string input, bool removeSystemGroups = true ) : string>>.IEnumerable |
Gets the pattern matches as key-value dictionaries. Useful with patterns that use named groups.
|
Метод | Описание | |
---|---|---|
CompiledRegex ( ) : System | ||
ConvertMatchToDictionary ( |
||
GetOptions ( RegexOptions originalOptions ) : RegexOptions | ||
IsSystemGroup ( string>.KeyValuePair |
public static BuildFrom ( string text, RegexOptions options = RegexOptions.None ) : |
||
text | string | The raw text. |
options | RegexOptions | The options (optional). |
Результат |
public CompiledRegex ( string pattern, RegexOptions options = RegexOptions.None ) : System | ||
pattern | string | The regular expression. |
options | RegexOptions | The options (optional). |
Результат | System |
public DictionaryMatch ( string input, bool removeSystemGroups = true ) : string>.IDictionary |
||
input | string | The input. |
removeSystemGroups | bool | True to remove system-added groups (such as group "0", "1", etc.) /// before extracting dictionary values. The default is true. |
Результат | string>.IDictionary |
public DictionaryMatches ( string input, bool removeSystemGroups = true ) : string>>.IEnumerable |
||
input | string | The input. |
removeSystemGroups | bool | True to remove system-added groups (such as group "0") before extracting /// dictionary values. The default is true. |
Результат | string>>.IEnumerable |