Метод | Описание | |
---|---|---|
Regex ( |
Construct a parser from the given regular expression.
|
|
Regex ( string pattern, string description = null ) : Parser |
Construct a parser from the given regular expression.
|
|
RegexMatch ( |
Construct a parser from the given regular expression, returning a parser of type Match.
|
|
RegexMatch ( string pattern, string description = null ) : Parser |
Construct a parser from the given regular expression, returning a parser of type Match.
|
Метод | Описание | |
---|---|---|
OptimizeRegex ( |
Optimize the regex by only matching successfully at the start of the input. Do this by wrapping the whole regex in non-capturing parentheses preceded by a `^'. This method is invoked via reflection in unit tests. If renamed, the tests will need to be modified or they will fail. |
public static Regex ( |
||
regex | The regex expression. | |
description | string | Description of characters that don't match. |
Результат | Parser |
public static Regex ( string pattern, string description = null ) : Parser |
||
pattern | string | The regex expression. |
description | string | Description of characters that don't match. |
Результат | Parser |
public static RegexMatch ( |
||
regex | The regex expression. | |
description | string | Description of characters that don't match. |
Результат | Parser |
public static RegexMatch ( string pattern, string description = null ) : Parser |
||
pattern | string | The regex expression. |
description | string | Description of characters that don't match. |
Результат | Parser |