Regex Tester
Build and test regular expressions with live inline highlighting, capture group breakdown, and replace mode.
Build and test regular expressions with live inline highlighting, capture group breakdown, and replace mode.
g), case-insensitive (i), multiline (m), dotAll (s), Unicode (u), or match indices (d).$1, lt;name>, and other tokens.The pattern library has more than 50 common regexes, for emails, URLs, IPv4 and IPv6 addresses, dates and times, UUIDs, credit card formats, semantic versions, and more, each with notes on what it does and doesn't match. Load one, then adapt it to your data. The quick reference covers anchors, character classes, quantifiers, groups, and lookarounds.
JavaScript's, the same engine as your browser and Node.js. Most syntax also works in Python, Java, and PCRE, but features like possessive quantifiers and some lookbehind rules differ.
No. Matching runs in your browser, so you can test against real log lines and data safely.
Without the g flag, JavaScript stops at the first match. The tool warns you when it's off. For bulk find-and-replace on a document, try Text Utilities.
More in Text & Code Tools · All 73 tools