Regular expressions are one of the most powerful tools in a developer's arsenal. This regex tester supports four modes: extracting all matches, extracting capture groups, find-and-replace, and filtering lines that contain matches — all running entirely in your browser with JavaScript's built-in regex engine.
\d+ — one or more digits[a-zA-Z]+ — one or more letters^start — line begins with "start"end$ — line ends with "end"\b\w+\b — any whole wordhttps?://\S+ — URLs[\w.-]+@[\w.-]+\.\w{2,} — email addressesg — global: find all matches (not just the first)i — case-insensitivem — multiline: ^ and $ match line boundariess — dotAll: . matches newlinesThis tool uses JavaScript's built-in RegExp engine, the same engine used in Node.js and all modern browsers. The syntax follows the ECMA-262 specification.
Wrap parts of your pattern in parentheses: (\w+)@(\w+). Use the "Extract groups" mode to see each group's captures separately. In replace mode, use $1, $2, etc. to reference groups.