Lompat ke kandungan utama

Penguji Regex

Alat Pembangun

Uji ungkapan biasa dengan penyerlahan padanan

Jawapan Pantas

Regex Tester: Test regular expressions with match highlighting. Regex Tester uses standard developer formulas to compute accurate results instantly.

Pratetap Biasa:

Ekspresi Biasa

//g
g=global i=abaikan huruf besar-kecil m=berbilang baris s=titik padan pemisah baris baharu

Teks ujian

Bilangan Padanan2
Kedudukan pertama5
Tandag
EnjinJavaScript

Keputusan terang

main 13812345678, backup 19987654321

Butiran Padanan

#Kandungan PadananKedudukanKumpulan
1138123456785—
21998765432125—

Carian Pantas Tatabahasa

SimbolMakna
\d \w \sdigit / word / whitespace
.any char except newline
* + ?0+ / 1+ / 0 or 1 times
{n,m}repeat n to m times
[abc] [^abc]set / negated set
^ $ \bstart / end / word boundary
( ) (?: )capture / non-capture group
a|balternation (or)

💡 Berhati-hati dengan pengkuantiti bersarang (contohnya (a+)+) yang menyebabkan pengunduran bencana, input berniat jahat boleh menyebabkan halaman terkandas. Cuba tulis ungkapan yang pasti dan sempadan jelas.

Adakah alat ini membantu anda?

Cara Guna

  1. Paste or type content: drop code/text into the Regex Tester or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

Perkara Utama

  • Regex Tester is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Test regular expressions with match highlighting.
  • Results come with formulas and reference tables so you can verify every number.

Prinsip & Formula

Regex Tester formula

Regex Tester uses standard developer formulas to compute accurate results instantly.

Soalan Lazim

How do I use the Regex Tester?
Open the page and fill in the input fields — results update automatically. Test regular expressions with match highlighting.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

Alat Berkaitan

Panduan berkaitan

Sumber & Kemas Kini

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

Kemas Kini Terkini:

Formula dan kandungan di halaman ini telah disemak semula oleh pasukan YiJianSuan, hanya untuk rujukan pembelajaran — sila rujuk sumber rasmi untuk urusan sebenar.

Kandungan diselenggara dan disemak semula secara berkala oleh pasukan editorial YiJianSuan — proses kemas kini dan semakan boleh dilihat diDasar Editorial.

Petik Halaman Ini: YiJianSuan. Penguji Regex[EB/OL]. https://www.yijiansuan.com/ms/c/dev/regex

Keputusan yang diberikan oleh alat ini hanyalah untuk rujukan, tidak membentuk sebarang nasihat profesional — sila rujuk pengiraan rasmi.