The string to be checked.
A boolean indicating whether the string is a valid regular expression flag. Checks if a string is a valid regex flags string.
This function checks if the provided string contains only the characters 'g', 'i', 'm', 's', 'u', 'y' and if there are no duplicate characters.
regexIsValidFlags('gim') // true
regexIsValidFlags('gmisuy') // false
Generated using TypeDoc
Checks if the provided string is a valid regular expression flag.