ByteKit
Home › Tools › Regex Tester

Regex Tester

Test a JavaScript regular expression against any text. See every match with its position and capture groups. Flags default to g. Pure in-browser — your text never leaves the page.

Results


      
[ AdSense — in-content 300×250 ]

Frequently asked questions

Which regex flavour does this use?

JavaScript regular expressions, executed by your own browser. Syntax that JavaScript does not support — lookbehind on older engines, POSIX classes, or \A/\z anchors — will fail with a parse error rather than match.

What is the flags field for?

It holds the flags passed to the regex, defaulting to g so every match is listed with its index and capture groups. Drop the g and only the first match is returned; add i for case-insensitive matching or m for multiline anchors.

Does this regex tester upload my test text?

No. The pattern and text are matched entirely in your browser and nothing is transmitted. You can paste production logs or private data here without it leaving your device.