DevSandbox
0 network calls
/ /
0 matches
Local (ReDoS Safe)
Replacement preview will appear here

Regex tester, debugger & match explainer

Test and debug regular expressions with real-time match highlighting, capture group inspection, and string replacement. Evaluated safely in your browser with built-in catastrophic backtracking protection.

Regex syntax cheat sheet

CharacterClassDescription
\d / \DDigitsMatches any digit (0–9) / any non-digit.
\w / \WWord charactersMatches any alphanumeric character or underscore / non-word.
\s / \SWhitespaceMatches spaces, tabs, line breaks / non-whitespace.
^ / $AnchorsBeginning / end of string or line (with m flag).
[abc]Character setMatches any single character enclosed in brackets.
+ / * / ?Quantifiers1 or more / 0 or more / 0 or 1 optional match.
(?<name>...)Named groupCaptures matched subgroup into a named property dictionary.

Active regex flags

Frequently asked questions

Is regular expression evaluation protected against ReDoS?

Yes. DevSandbox includes an execution iteration limiter and regex safety checks to prevent catastrophic backtracking from freezing your browser tab.

Does the regex tester support named capture groups?

Yes. It supports named capture groups (?<name>...), standard capturing parentheses, non-capturing groups, and all modern regex flags (g, i, m, s, u).