How to use it
Choose a starter template or enter a JavaScript pattern, add only the flags you need, and paste representative text. Compare expected matches with the result, then change one group, quantifier, boundary, or flag at a time.
Use the regex tester to run a JavaScript regular expression against sample text and inspect every match immediately. Start with positive, negative, and boundary examples, then adjust one token or flag at a time. Browser results follow JavaScript RegExp behavior and may differ from PCRE, RE2, or server-side engines.
Choose a starter template or enter a JavaScript pattern, add only the flags you need, and paste representative text. Compare expected matches with the result, then change one group, quantifier, boundary, or flag at a time.
Pattern: \b[A-Z]{2}-\d{4}\b
Text: Order AB-2048, draft A-121 match: AB-2048
Patterns and test text remain in the browser. Test untrusted patterns against realistic long samples before production use.