- matches(str: string, pattern: RegExp): boolean
-
Parameters
-
str: string
-
pattern: RegExp
Returns boolean
- matches(str: string, pattern: string, modifiers?: string): boolean
-
Parameters
-
str: string
-
pattern: string
-
Optional
modifiers: string
Returns boolean
Check if string matches the pattern.