Test and debug regular expressions against sample text online for free. See live highlighted matches, group captures, and match count. Supports.
Enter your regex pattern at tools.arkaserve.com/regex-tester, paste your test string below it, and all matches are instantly highlighted in real time. Capture groups are listed with their matched values. Use the "g" flag for global matching (all matches) and "i" for case-insensitive. Works with JavaScript ECMAScript regex syntax, compatible with most programming languages. Completely free, no signup.
Common reasons: missing the "g" flag (without it only the first match is found), incorrect escaping (in a regex tester you type \d not \\d), a quantifier that is too strict (use \d+ instead of \d for one or more digits), or a character class that is too narrow. Check the flags panel and try simplifying your pattern first — start with a partial match, then add specificity.
Yes. Both numbered groups (\d{4}) and named groups (?<year>\d{4}) are supported. Matched values for each group appear in the match results list below the test string. Named groups are listed by their name (e.g., "year: 2024"), numbered groups by their index. Use the "g" flag to see all matches, not just the first.