Function charTest

  • Make a parser that matches input character against given regular expression.

    Use this to match characters belonging to a certain range or having a certain unicode property.

    Use satisfy from core module instead if you need a predicate.

    Tokens expected to be individual characters/graphemes.

    Type Parameters

    • TOptions

    Parameters

    • regex: RegExp

      Tester regular expression.

    Returns Parser<string, TOptions, string>

Generated using TypeDoc