Class Search.LiteralRegExp
Implements a RegExp-like object that will search for the literal value
of a given string, rather than the regular expression. This allows for
iterative literal searches without having to escape user input strings
to prevent invalid regular expressions from being used.
Defined in: search.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Search.LiteralRegExp(literal, reverse, caseSensitive)
|
Class Detail
Search.LiteralRegExp(literal, reverse, caseSensitive)
- Parameters:
- {String} literal
- Text to search for
- {Boolean} reverse
- Truthy to preform a reverse search, falsy to perform a forward seach
- {Boolean} caseSensitive
- Truthy to perform a case sensitive search, falsy to perform a case insensitive search.