Tries to parse a string as a regular expression, falling back to literal search, and then tests a given value
Returns a tuple of [matchedExpressionBool,matchedValString]
The string to use a regular expression
The string to test with the regular expression
Optional
options: string | LiteralSearchOptions = {}Options related to how to parse the string value for the literal search
A wrapped version of
testMaybeRegex
that caches RegExp's based on inputs of + default flagsSee
testMaybeRegex