Regex Tester
Test regular expressions against text in real-time. Matches highlighted instantly.
Enter a regex pattern to start
About Regular Expressions
What is Regex?
Regular expressions (regex) are patterns used to match character combinations in strings. They are used in virtually every programming language for searching, validating, and transforming text — from email validation to log parsing to find-and-replace operations.
How to Test Regex Online
Type your regex pattern in the pattern field, enter test text below, and see matches highlighted in real-time. Toggle flags (global, case-insensitive, multiline, dotAll) to change matching behavior. The match list shows each match with its position and any capture groups.
Common Regex Patterns
Email: /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/. URL: /https?:\/\/[\w\-]+(\.[\w\-]+)+[\w\-.,@?^=%&:/~+#]*$/. Phone: /\+?[1-9]\d{1,14}$/. IP Address: /\b\d{1,3}(\.\d{1,3}){3}\b/. These are starting points — always test with your actual data.
qevro