Test JavaScript regular expressions against text with flags, capture groups, named groups, and match highlighting.
Regex Tester is a free online tool for testing JavaScript regular expressions against text. It supports all RegExp flags, shows matches with start/end positions, capture groups, and named groups, and highlights results in the text. The tool runs in your browser and does not send data to the server.
Choose a related tool for the next step.
Data passed between tools is kept only in the current browser session.
Regex Tester helps you test a regular expression against text directly in the browser. The tool supports JavaScript RegExp, the g, i, m, s, u, and y flags, and shows all matches with their start/end positions, capture groups, and named groups. It is useful for debugging filters, form validation, searching for values in logs, validating emails, URLs, dates, IDs, and text patterns.
To protect the browser, the tool applies limits on text length and the number of matches, guarding against catastrophic backtracking from complex expressions.
All processing is done locally in the browser. Your data is not sent to the server.