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
The string to escape for use in a regular expression pattern match.
// Example
alert(RegExp.TA_escape("- ["));
// Displays "\- \["
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.