Succeeds if the specified regular expression matches the text.
public static IParser<Match> Regex(Regex regex)
The regular expression should be anchored at the beginning of the text (via ^
).
Succeeds if the specified regular expression pattern matches the text.
public static IParser<Match> Regex(string pattern)
The regular expression pattern is automatically anchored at the beginning of the text, but not at the end of the text. The parsed value is the successful Match.
Succeeds if the specified regular expression pattern matches the text.
public static IParser<Match> Regex(string pattern, RegexOptions regexOptions)
The regular expression pattern is automatically anchored at the beginning of the text, but not at the end of the text. The parsed value is the successful Match.