• Given a string, escape characters which have meaning in the regex grammar, such that the result is safe to feed to new RegExp().

    Parameters

    • regexString: string

      The string to escape

    Returns string

    An version of the string with all special regex characters escaped

Generated using TypeDoc