What is a regular expression?
A regular expression (regex) is a pattern that describes a set of strings. Developers use regex to validate input like emails, search and replace text, and extract data from logs. This tester uses the same engine as your JavaScript code, so results match exactly.
Features
- • Live highlighting of every match as you type
- • Capture groups and named groups for each match
- • Replace preview with numbered and named group references
- • Ready-made patterns and a compact cheat sheet
Private by design
Your patterns and test data are processed entirely in your browser and only saved in local storage on your device.