Tool
Regex Tester
Try a JavaScript regular expression against sample text in your browser. This is not PHP’s PCRE engine.
Limitations. JavaScript RegExp is not identical to PHP preg_match. Delimiters are not used. A worker stops the attempt if it runs too long, but a pattern can still be dangerous in other engines. Do not paste secrets.
How to use it
Enter a pattern, optional flags (g, i, m, s, u, y), and the text to test. Matches are shown with their index.