isValid

Whether the given string is valid or not. If the regex is null or not a regular expression, it always returns true.

Since

4.14.0