escapeRegExp | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function escapeRegExp

    • Encode string for use in a regexp

      Parameters

      • text: string

        Text to encode

      • Optionaloptions: { wildcards?: "?*" }

      Returns string

      Encoded for safe use in a RegExp