Parser.Regex method (1 of 2)

Succeeds if the specified regular expression pattern matches the text.

public static IParser<Match> Regex(string pattern)

Remarks

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.

See Also


Parser.Regex method (2 of 2)

Succeeds if the specified regular expression pattern matches the text.

public static IParser<Match> Regex(string pattern, RegexOptions regexOptions)

Remarks

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.

See Also