JavaScript regex methods include exec, test, match, matchAll, replace, search and split.
MDN guideCapture groups and named groups are surfaced in the Matches tab.
MDN groupsUnicode property escapes need the unicode flag in many practical patterns.
MDN unicodeLookbehind assertions are useful but can behave differently from left-to-right matching intuition.
MDN lookbehindTest regex against real positive and negative cases
Use match highlighting, captures, replacement output, code snippets, history, and copy actions to review a pattern before shipping it.
Sample text and patterns stay in your browser.
What to check
- Methodology: run the JavaScript regex against sample text, inspect matches and captures, then review replacement and generated-code output.
- Test realistic valid, invalid, empty, long, Unicode, and edge-case samples before enforcing a pattern in production.
- Review flags, capture groups, anchors, replacement output, and catastrophic-backtracking risk.
- Confirm official formats for phone numbers, IDs, tax numbers, payment references, or government codes before rejecting users.
Limitations
- Disclaimer: local JavaScript regex utility only, not an official validator or security guarantee.
- Different languages and database engines can interpret regex syntax differently.
- Do not paste sensitive logs or personal data into shared pattern examples.
Source/reference note: verify production formats against current API docs, regulator specs, or service-provider examples before deploying.