Test a regular expression against sample text. See matches highlighted live.
100% in your browser · No uploadsRegex Tester runs a regular expression against sample text and highlights every match in real time. Shows match positions, captured groups, and explains errors when the pattern is invalid.
JavaScript regex (ECMAScript). It's very close to most other flavors but lacks some PCRE features (lookbehind support depends on browser).
g = global (find all matches), i = case-insensitive, m = multiline (^ and $ match line breaks), s = dotall (. matches newlines), u = Unicode, y = sticky.