Pattern is invalid
remove slash delimiters and inspect escaped backslashes, brackets and unsupported PCRE constructs.
Test a JavaScript regular expression against sample text and inspect every match, index and capture group before putting it in code.
Developer & Text ToolsRead the full guideA JavaScript regex tester runs an ECMAScript RegExp pattern against input text and reports matches, positions and capture groups. Enter the pattern without surrounding slashes and select flags such as g, i, m or s; PCRE-only syntax may not work in JavaScript.
Enter the source data: Enter a pattern without leading/trailing slash delimiters, then paste synthetic test text that includes expected matches and non-matches.
Choose the relevant settings: Select flags deliberately. Use g for all matches, i for case-insensitive matching, m/s for line behavior, and type u/y only when the runtime supports the intended semantics.
Review and verify the result: Inspect highlighted matches, indices and capture groups. Add edge cases and long adversarial strings before copying the expression into production code.
remove slash delimiters and inspect escaped backslashes, brackets and unsupported PCRE constructs.
enable the global flag when multiple non-overlapping matches are required.
simplify nested quantifiers and ambiguous alternation; add a performance warning and test safeguards.
No. Enter only the pattern body in this interface; choose flags separately.
No. The target engine is JavaScript ECMAScript RegExp. PCRE recursion, possessive quantifiers, conditionals and other engine-specific syntax may be unsupported.
They should be described as starter examples only. Real email/URL syntax and product requirements are broader than a compact preset.
The calculation runs in this browser component, but that alone is not a complete privacy guarantee. Use non-production data unless you have also reviewed extensions, clipboard history, downloads and site diagnostics.
The layout adapts to narrow screens. File selection, camera access, clipboard actions and downloads still depend on the permissions and capabilities of the mobile browser.
Build a small test suite of matching, non-matching and adversarial inputs, then copy the expression only after checking the target JavaScript runtime.