Provides utility functions for strings.

This class should not be constructed as it only contains static methods.

Constructors

Methods

Constructors

Methods

  • Escape a given input string prefacing special characters with backslashes for use in a regular expression.

    Parameters

    • string: string

      An un-escaped input string.

    Returns string

    The escaped string suitable for use in a regular expression.