Developer Tool
π Regex Tester
Test regular expressions with live match highlighting, capture groups, and flags. Uses JavaScript's native RegExp engine β everything runs in your browser.
β‘ Common Patterns (click to load)
π Regex Cheat Sheet
. β any char except newline\d β digit [0-9]\w β word char [A-Za-z0-9_]\s β whitespace[abc] β a, b, or c[^abc] β not a, b, or c* β 0 or more+ β 1 or more? β 0 or 1{n} β exactly n{n,m} β between n and m*? β lazy match^ β start of string/line$ β end of string/line\b β word boundary\B β non-word boundary(...) β capture group(?:...) β non-capturing(?=...) β lookahead(?!...) β negative lookahead| β alternation (or)β Frequently Asked Questions
What is a regex tester?
A regex tester is a tool that lets you write a regular expression and instantly see which parts of a text string match. It highlights matches and shows capture groups in real time.
What regex flavor is supported?
This tester uses JavaScript's native RegExp engine, which is compatible with most modern regex flavors and supported in all browsers and Node.js.
What do the regex flags mean?
g = global (find all matches), i = case insensitive, m = multiline, s = dotall (. matches newlines), u = unicode, y = sticky (match from lastIndex only).
Is my data sent to a server?
No. All regex matching happens locally in your browser. Your patterns and text never leave your device. No tracking, no ads.
β€οΈ Support Free Tools
This calculator is free forever. If it helped you, consider buying me a coffee.
β Buy Me a Coffee