Returns a regex that compiled by the given pattern
Optional
the pattern to inspect
any combination of flag values
a regex that compiled by the given pattern
compilePattern('[a-zA-Z0-9]+', 'g'); Copy
compilePattern('[a-zA-Z0-9]+', 'g');
Returns a regex that compiled by the given pattern