Penguji Ekspresi Reguler (RegEx)
Utilitas PengembangUji pola RegEx secara realtime dengan penjelasan grup tangkapan dan kecocokan teks.
Test text
Highlighted matches (0)
Matches light up here as you type a pattern and test text.
Match list
Each match appears here with its position and capture groups.
Pattern breakdown
Type a pattern above to see each construct explained in plain English.
Cheat sheet
Character Classes
.Any character except newline\dDigit, 0 to 9\wWord character: letter, digit, underscore\sWhitespace: space, tab, newline\D \W \SNegated versions of the above[abc]One of a, b, or c[^abc]Any character except a, b, or c[a-z0-9]Character in a range
Anchors
^Start of string, or line with m flag$End of string, or line with m flag\bWord boundary\BNot a word boundary
Quantifiers
*Zero or more times+One or more times?Zero or one time, optional{3}Exactly 3 times{2,}2 or more times{2,5}Between 2 and 5 times+? *? ??Lazy: match as little as possible
Groups & Lookaround
(abc)Capturing group(?:abc)Non-capturing group(?<name>abc)Named capturing group\1Backreference to group 1a|bMatch a or b(?=abc)Lookahead: followed by abc(?!abc)Negative lookahead: not followed by abc(?<=abc)Lookbehind: preceded by abc(?<!abc)Negative lookbehind: not preceded by abc
Panduan Singkat Penguji Ekspresi Reguler (RegEx)
Diproses 100% lokal di browser · 0 MB diunggahUji pola RegEx secara realtime dengan penjelasan grup tangkapan dan kecocokan teks.
Cara Menggunakan
- 1Enter a pattern: Type your regular expression in the Pattern field, or click Load sample to try an email-matching example. An invalid pattern shows a clear error message instead of failing silently.
- 2Toggle flags: Switch g, i, m, s, u, and y on or off with the flag buttons — each has a tooltip explaining what it does, from global and ignore-case to multiline and unicode.
- 3Add test text: Paste the text you want to search in the Test text box. Matches highlight instantly in the panel beside it, so you can see exactly what your pattern catches.
Pertanyaan Umum (FAQ)
Apa itu Penguji Ekspresi Reguler (RegEx)?
RegEx Tester lets you build and check regular expressions with live match highlighting, a full match list, and a plain-English breakdown of your pattern. Type an expression, toggle the flags you need, and see every match light up in your test text as you go — capture groups and named groups included. A built-in cheat sheet keeps the syntax within reach. It all runs in your browser, so your text is never uploaded.
Cara menggunakan Penguji Ekspresi Reguler (RegEx)
3 langkah mudah untuk menyelesaikan tugas Anda langsung di peramban:
Enter a pattern
Type your regular expression in the Pattern field, or click Load sample to try an email-matching example. An invalid pattern shows a clear error message instead of failing silently.
Toggle flags
Switch g, i, m, s, u, and y on or off with the flag buttons — each has a tooltip explaining what it does, from global and ignore-case to multiline and unicode.
Add test text
Paste the text you want to search in the Test text box. Matches highlight instantly in the panel beside it, so you can see exactly what your pattern catches.
Kasus penggunaan umum
- Test a pattern before pasting it into your code
- Debug why a regex is matching too much or too little
- Extract and verify capture groups from sample data
- Learn regex syntax with live feedback and the cheat sheet
- Validate an email, URL, or ID format against real examples
- Understand an unfamiliar pattern via the plain-English breakdown
Mengapa memilih VersaTools
100% Privat & Aman
Berkas Anda tidak pernah diunggah ke server luar. Semua operasi berlangsung di browser Anda.
Penggunaan Harian Gratis
Gunakan fitur lengkap tanpa biaya tersembunyi atau paksaan berlangganan.
Performa Instan
Proses secepat kilat dengan dukungan WebAssembly dan teknologi web modern.
Berjalan Langsung di Browser
Kompatibel dengan Windows, macOS, Linux, iOS, dan Android tanpa memasang aplikasi.
Tanpa Tanda Air
Unduh dokumen dan media yang bersih, siap langsung digunakan untuk keperluan profesional.
Berkas Anda Milik Anda
Jaminan tanpa penyimpanan data: Semua yang Anda olah tetap sepenuhnya di bawah kendali Anda.