isValidRegex
Checks if a string is a valid regex pattern.
Available since v1.9.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | string | The string to check |
Returns
Section titled “Returns”boolean — True if the string is a valid regex pattern
