Optional
trimOptional
behaviorHow the literal search value expression should be built IE how to search for the value in a string:
Optional
flagsDefault flags to set on the parsed regex or literal search expression
Optional
transformOne or more search-and-replace criteria used to transform the string value before using it as the literal search expression
Optional
escapeA search-and-replace criteria used to escape the string value before it is inserted into the literal search expression. A default escape function is provided.
Optional
cacheA caching implementation for caching unique regex strings + behavior + default flags
Trim whitespace from string value before transforming and escaping