Checks if a string matches a pattern with wildcards, without returning captures
The input string to match
The pattern string, may contain * and *+ wildcards
Optional
Optional custom character comparison function
True if the pattern matches, false otherwise
matches('hello', 'hell*') // returns truematches('world', 'w*d') // returns truematches('test', 'different') // returns false Copy
matches('hello', 'hell*') // returns truematches('world', 'w*d') // returns truematches('test', 'different') // returns false
Checks if a string matches a pattern with wildcards, without returning captures