Gratis verktygskatalog / Andra verktyg / Regex testare

Regex testare

Gratis regex-testare: testa ett reguljärt uttryck mot din text, se matchningar markerade och inspektera varje fångstgrupp. Flaggor justerbara.

Testa ett reguljärt uttryck mot din text och se varje matchning markerad, med varje fångstgrupp listad separat. Justera flaggorna och testa igen tills mönstret fångar exakt vad du vill ha. Använd den när du skriver ett valideringsmönster för e-postadresser eller telefonnummer innan du klistrar in det i din kod.

Öppna verktyget →

Gratis att använda, ingen registrering. Verktyget öppnas på sin egen sida och körs i din webbläsare.

Behöver du mer? Go Pro

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

Skaffa Pro →

Alipay — $5

Eller lås upp alla verktyg med All-Access Pro — $15 en gång.

Få All-Access — $15 en gång

Alipay — $15

Priserna justeras efter land så att samma verktyg kostar mindre där inkomsterna är lägre – du ser priset för ditt land.

Föredrar Alipay? Se alla betalningsalternativ.

Redan betalt? Logga in på Pro

Hur man använder det

  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.

Vanliga frågor

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.

Fler Andra verktyg verktyg

← Tillbaka till alla verktyg · Bläddra i guider