Skip to content
Esc

↑↓ to move Enter to open/ anywhere to search

Kiểm tra regex

Type a regular expression, choose the flags and paste some text. Matches are highlighted as you type, with their positions and capture groups listed, and you can test a replacement using $1 and $2. It uses the JavaScript regex engine.

Chạy trong trình duyệt. Tệp của bạn không bao giờ rời khỏi thiết bị.

Flags
Matches
2
#MatchVị tríGroups
1[email protected]9$1=aisha $2=example
2[email protected]28$1=ben $2=test

Use $1, $2 for groups.

Kết quả

Cách hoạt động

  1. 01Type your pattern and choose the flags.
  2. 02Paste the text to test.
  3. 03Check the highlighted matches and the replacement.

Câu hỏi thường gặp

Which regex flavor is used?

The JavaScript (ECMAScript) flavor that your browser uses.

Why does my pattern show an error?

The message from the browser tells you what is wrong, such as an unclosed bracket.

Is my file uploaded to a server?

No. Everything happens inside your browser on your own device. Your files are never sent to us or anyone else.

Is it free?

Yes. It is free to use, with no signup, no watermark and no daily limit.

Thêm công cụ