Veelgemaakte regex fouten die echte patronen breken
Praktische gids over greedy gedrag, escaping, flags en false positives die regex vaak laten mislukken in echte tekst.
Artikel lezenProbeer patronen, flags en testtekst direct in de browser om matches snel te zien. Handig voor debugging, validatieregels en technische tekst workflows.
Matches
0: Tool 9: voor 33: tool 39: data
Geldige regex
Ja
Aantal matches
4
Resultaat ingekort
Nee
Gids
Regex Tester is a free online tool for checking JavaScript regular expressions against real sample text before you use them in code, forms or scripts.
It is useful when you need to validate patterns, inspect matches, test flags and understand why a regex is matching too much, too little or the wrong text.
Use it when a plain contains search is not enough and you need a pattern that can validate, extract or transform text based on rules.
It is especially useful before shipping a regex into production code, because testing against real examples helps expose false positives, missed matches and flag mistakes.
Gebruik
Paste the sample text, add the regex pattern and choose the flags you want to test.
Run the tester and inspect the matches, groups and overall behavior to make sure the pattern is doing exactly what you expect.
If the result looks wrong, adjust escaping, anchors, quantifiers or flags before copying the regex into your codebase.
FAQ
Ja. Je kunt flags zoals g, i en m direct in de tester proberen.
Ja. De tester is gebaseerd op JavaScript reguliere expressies.
Verdieping
Praktische gids over greedy gedrag, escaping, flags en false positives die regex vaak laten mislukken in echte tekst.
Artikel lezenPraktische gids over het verschil tussen regex en simpele tekstzoekopdrachten, en wanneer contains, find of search beter zijn.
Artikel lezenPraktische gids over reguliere expressies, teststrings en wanneer een regex tester nuttig is voor debugging, validatie en tekstverwerking.
Artikel lezen