JavaScript syntax
Patterns use the regular expression syntax supported by your browser's JavaScript engine.
Test a JavaScript regular expression against sample text, inspect matches and check flags before adding a pattern to your code.
Patterns use the regular expression syntax supported by your browser's JavaScript engine.
Try common flags such as g for global, i for case-insensitive and m for multiline matching.
Matches are computed in the page, which is useful for quick debugging and sample data.
Check escaping, brackets, parentheses and flags. The tool shows the browser's parsing error.
No. This page tests JavaScript regular expressions. PCRE, Python and other engines have different features.