This free online tool helps developers and data analysts test regular expressions (RegEx) against text input. It identifies matches, captures groups, and shows match positions.
Common RegEx Patterns:
Email: \b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b
Phone: \b\d{3}[-.]?\d{3}[-.]?\d{4}\b
URL: https?://[^\s]+
Numbers: \d+
Words: \b\w+\b
IP Address: \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b
Example Test:
Pattern: \b\w+@\w+\.\w+\b
Text: Contact us at support@example.com or sales@company.org for more info.
Result: Finds both email addresses with their positions.
RegEx Cheat Sheet:
- . - Any character except newline
- \d - Digit (0-9)
- \w - Word character (letter, digit, underscore)
- \s - Whitespace (space, tab, newline)
- ^ - Start of string
- $ - End of string
- * - Zero or more repetitions
- + - One or more repetitions
- ? - Zero or one repetition
- [] - Character set
- () - Group/capture
- | - Alternation (OR)
Tip: Try testing the email pattern
\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b
with sample text containing email addresses.
Note: This tool uses Python's re
module for pattern matching. Results are approximate.