• Escapes a string for inclusion in a regular expression.

    Parameters

    • str: string

      The string to escape.

    Returns string