Regex Tester
Online
regex-tester
/
/g
Test text
.*
Enter a pattern and test text
Match
Was this tool helpful?
Related Tools
Frequently Asked Questions
Regular expressions (regex) are patterns used to search and manipulate text. They let you match strings by complex rules — for example, extracting all email addresses from a document or validating a phone number format.
Popular ones include \d+ for numbers, \w+ for words, ^...$ to match an entire string, and .* for any sequence of characters. Square brackets [abc] define a set of allowed characters.
The g flag enables global search for all matches, i makes the search case-insensitive, m turns ^ and $ into per-line anchors, and s allows the dot to match newline characters.
Enter your pattern and test text into this tool — matches are highlighted instantly. This helps you debug the expression before embedding it in your program.