DevToolBoxKOSTENLOS
Blog

Regex-Tester

Reguläre Ausdrücke mit Echtzeit-Abgleich, Hervorhebung und Unterstützung von Erfassungsgruppen testen. Kostenlos, keine Anmeldung erforderlich.

//g

Über reguläre Ausdrücke

Reguläre Ausdrücke (Regex) sind mächtige Muster zum Abgleichen, Suchen und Ersetzen von Text. Sie sind unverzichtbar für die Eingabevalidierung, Textverarbeitung und Datenextraktion. Dieses Werkzeug testet deinen Regex in Echtzeit mit der JavaScript-Regex-Engine.

Frequently Asked Questions

What is the difference between testing and matching?
Testing checks if a pattern matches a string at all (with the "g" flag, it finds all matches). Matching shows you where in the text the pattern was found and what was captured. Use tools like JSON Formatter to validate your data before testing patterns.
What do regex flags do?
The global flag (g) finds all matches; case-insensitive (i) ignores uppercase/lowercase; multiline (m) makes ^ and $ match line boundaries instead of string boundaries; dotall (s) makes . match newlines. Combine flags as needed.
How do I match email or phone numbers?
Email: /[^@]+@[^@]+\.[^@]+/. Phone (US): /\d3-\d3-\d4/. For real production use, check the validation best practices.
What's a capture group?
Parentheses in a regex create capture groups. For example, (\w+) captures one or more word characters. Groups are shown separately in the matches list, allowing you to extract specific parts of your match.
𝕏 Twitterin LinkedIn

💬 User Feedback

Have suggestions or found a bug? Leave a message and we'll get back to you.
0/2000

Bewerten Sie dieses Tool

4.2 / 5 · 82 Bewertungen

Bleiben Sie informiert

Wöchentliche Dev-Tipps und neue Tools.

Kein Spam. Jederzeit abbestellbar.

Enjoy these free tools?

Buy Me a Coffee

Anleitung

  1. Enter your regex pattern in the pattern field
  2. Add flags (g for global, i for case-insensitive, m for multiline)
  3. Type or paste your test text
  4. View highlighted matches and match details in real-time

Anwendungsfälle

  • Validating email addresses, URLs, or phone numbers
  • Extracting data from text (log parsing, web scraping)
  • Search and replace operations
  • Input validation in web forms

Häufig gestellte Fragen

What is a regular expression?
A regular expression (regex) is a pattern used to match, search, and manipulate text. It's supported in virtually every programming language.
How do I test my regex?
Enter your regex pattern in the pattern field, add test text below, and the tool will highlight all matches in real-time. Flags like 'g' (global) and 'i' (case-insensitive) are supported.
Is my regex data safe?
Yes. All regex processing happens in your browser using JavaScript's built-in RegExp engine. No data is sent anywhere.