Kuro Lab
Regex Tester
Tools / Development
.*

Regex Tester

This page participates in the Coupang Partners program and may earn a commission from qualifying purchases.

Enter a regular expression and test text to highlight matches and inspect capture groups.

Pattern
//g
Flags
2 matches
Contact: kuro@example.com or admin@site.co.kr
Groups
Index 9Full match: kuro@example.com
Index 29Full match: admin@site.co

How to use

1

Type a regular expression into the pattern box.

2

Toggle the g, i, m, s, and u flags as needed.

3

Enter test text and matches are highlighted instantly.

4

If the pattern has capture groups, each match's group values appear below the result.

Need to compare two pieces of text? Try the Text Compare tool.

자주 묻는 질문

Q1. Is my test text sent to a server?

No. Matching runs entirely in your browser's JavaScript engine — neither the pattern nor the test text is ever sent to a server.

Q2. What does the g flag do?

With the g (global) flag on, the tool finds every match in the text instead of stopping at the first one. With it off, only the first match found is shown.

Q3. What are capture groups?

Parts of a pattern wrapped in parentheses () are called capture groups. For example, (\d{3})-(\d{4}) splits a phone number into two parts, extracted separately as group 1 and group 2.

Q4. What regex flavor does this tool use?

It uses the browser's built-in JavaScript (ECMAScript) regex engine. The syntax is mostly similar to PCRE or Python's re module, but some features — like lookbehind support — can differ.

Q5. What happens if my regex is invalid?

An error message appears below the pattern box, and no match results are calculated until the pattern is fixed.

댓글

첫 번째 댓글을 남겨보세요!

This page participates in the Coupang Partners program and may earn a commission from qualifying purchases.