Regex Tester

Check match count, matches, and capture groups from a pattern, flags, and test string

도구를 불러오는 중…

🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.

Enter a regex pattern, flags, and a test string, and this tool shows the match count and each match's position and capture groups in real time. It's useful for developers writing and debugging regular expressions, or anyone checking whether a pattern behaves the way they intend.

How to use

  1. Enter your regex pattern and select any flags you need (g, i, m, and so on).
  2. Enter the text to check in the test string box below.
  3. The match count, the list of matches, and capture groups (including named groups) are shown instantly.

FAQ

What happens if I enter an invalid regex?
An error message is shown and matching stops. As soon as you fix the pattern, it re-runs immediately.
Why do I need the global (g) flag?
With the g flag, it finds all matches throughout the string; without it, only the first match is shown.
Are the pattern and text I enter sent to a server?
No. The regex runs in your browser's JavaScript engine, and no content is ever sent to a server.

← Back to all tools

가격 보기카톡 무료 상담