Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RegExp

RegExp (Native)

The ThoughtAsylum library includes a set of extensions to the standard RegExp object. These are used to simpify common actions in terms of working with regular expressions.

Hierarchy

  • RegExp

Index

Methods

Methods

TA_escape

  • TA_escape(p_strRegEx: string): string
  • Escape a regular expression string to ensure things like hyphens and square brackets, which Drafts uses in standard check mark syntax for example, is not translated to a special pattern identifier, but remains intact and interpreted as the literal character. more text

    Parameters

    • p_strRegEx: string

      The string to escape for use in a regular expression pattern match.

      // Example
      alert(RegExp.TA_escape("- ["));
      // Displays "\- \["

    Returns string