Regex Tester
Test JavaScript regular expressions, inspect matches, and keep common patterns close by.
Input / Output
Start with the tool
Input, output, and copy actions stay in this main surface. Examples and reference checks are separated below.
Local session
Input state is saved only in this browser so you can restore the last workspace without an account.
Review after the result
Open examples, checks, and related tools only after the primary input/output flow is done.
Examples
Starting points for this utility^[^\s@]+@[^\s@]+\.[^\s@]+$https?:\/\/[^\s"'<>]*[A-Za-z0-9/#]\b(?:25[0-5]|2[0-4]\d|1?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|1?\d?\d)){3}\bUse cases
Code- Validate JavaScript regular expressions
- Inspect capture groups and match positions
- Run one positive sample and one negative sample before copying the pattern.
- Confirm each flag is intentional: g, i, m, s, u, or y.
- Copy either the raw pattern or the slash-wrapped form based on the target API.