Free Tool Directory / Lwm yam cuab yeej / Regex Tester

Regex Tester

Dawb regex tester: sim cov lus qhia tsis tu ncua tawm tsam koj cov ntawv nyeem, saib cov kev sib tw tseem ceeb, thiab tshuaj xyuas txhua pab pawg ntes. Chij adjustable.

Ntsuam xyuas cov lus qhia tsis tu ncua tawm tsam koj cov ntawv nyeem thiab pom txhua qhov kev sib tw tseem ceeb, nrog rau txhua pab pawg ntes tau muab cais tawm. Kho cov chij thiab rov sim dua kom txog thaum tus qauv catches raws nraim qhov koj xav tau. Siv nws thaum sau tus qauv siv tau rau email chaw nyob lossis xov tooj ua ntej koj muab tso rau hauv koj cov lej.

Qhib lub cuab yeej →

Dawb siv, tsis muaj npe. Cov cuab yeej qhib ntawm nws tus kheej nplooj ntawv thiab khiav hauv koj tus browser.

Xav tau ntxiv? Mus Pro

Pro: download your Regex results as CSV & save history, $5 one-time

Tau txais Pro →

Alipay — $5

Los yog qhib txhua lub cuab yeej nrog All-Access Pro — $15 ib zaug.

Tau All-Access — $15 ib zaug

Alipay — $15

Cov nqi raug kho los ntawm lub teb chaws yog li tib lub cuab yeej raug nqi tsawg dua qhov twg cov nyiaj tau los qis dua - koj pom tus nqi rau koj lub tebchaws.

Xav Alipay? Saib tag nrho cov kev xaiv them nyiaj.

Twb tau them? Nkag mus rau Pro

Yuav siv li cas

  1. Type a regular expression and pick flags.
  2. Paste the text to test against.
  3. Press Test regex to see matches highlighted and capture groups listed.

Cov lus nug

What are capture groups?

Parts of a pattern inside parentheses. Each group is listed separately in the table, so you can see exactly what each part of the pattern matched — useful when you want to extract pieces of text, not just find them.

Why does my pattern match nothing?

Check that the pattern really describes your text: a missing escape (\d, not d), a flag you forgot (i for case), or ^ and $ without the m flag on multi-line text are the usual suspects.

Can a regex freeze my page?

Yes — a pattern like (a+)+$ on a long string of a's can take exponentially long to test. This is called catastrophic backtracking. Keep patterns simple, avoid nested quantifiers, and test on short text first. This tool caps the match loop, but a single slow match can still hang the page, so test risky patterns on a few characters first.

Ntau Lwm yam cuab yeej cov cuab yeej

← Rov qab mus rau tag nrho cov cuab yeej · Tshawb nrhiav cov lus qhia