Bộ thử Regex: hướng dẫn bắt đầu nhanh
Mọi thứ bạn cần cho lần dùng thành công đầu tiên: dán gì vào, tùy chọn nào thực sự quan trọng, và đọc kết quả ra sao.
Cách dùng
- Mở công cụ và dán dữ liệu vào khung bên trái.
- Chỉ chỉnh những tùy chọn mà tác vụ thực sự cần — giá trị mặc định đã đúng cho hầu hết trường hợp.
- Đọc kết quả ở khung bên phải; kết quả cập nhật khi bạn gõ.
- Dùng Sao chép để lấy kết quả, hoặc Tải xuống để lưu thành tệp.
Ví dụ
Try email pattern.
Đầu vào
user-2026@mail.com and admin@sub.example.co.uk
Đầu ra — Kết quả
<p class="tb-note">2 matches</p><table class="tb-table"><tr><th>#</th><th>Match</th><th>Index</th></tr><tr><td>1</td><td><code>user-2026@mail.com</code></td><td>0</td></tr><tr><td>2</td><td><code>admin@sub.example.co.uk</code></td><td>23</td></tr></table><pre class="ex-io"><mark>user-2026@mail.com</mark> and <mark>admin@sub.example.co.uk</mark></pre>
Chạy
Mô tả
Live JavaScript regex testing with match groups highlighted.
Công cụ liên quan
Công cụ Regex khác biệtApply regex replacements with $1 capture references.Thư viện Thông dụng RegexReady-made patterns for email, URL, phone, dates and more.Bộ mã hóa Base64Encode text, JSON, URLs or files to Base64, standard or URL-safe.Bộ mã hóa URLPercent-encode URLs or single query components.Bộ giải mã Base64Decode Base64 (standard or URL-safe) back to text or bytes.Bộ tạo SHA-256 bămCompute the SHA-256 digest — the standard for modern integrity checks.