Developer Tools - Free Online Utilities

    Multiline Formatter
    Text Case Converter
    Lorem Ipsum Generator
    Text Sort & Dedup Tool
    Unicode & Emoji Browser
    CSV to JSON/XML Converter

    JSON Formatter
    JavaScript Formatter
    SQL Query Formatter
    XML Formatter & Validator
    Regex Tester
    Diff Tool
    Number Base Converter

Regex Tester

Comprehensive regex testing suite with flags, live highlighting, capture groups, pattern library, and cheat sheet.

Regular Expression

Enter your regular expression pattern

Flags

Constructed regex:

/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/g
Test Text
Highlighted Results
2 matches
You can contact me at test@example.com or my.other.email@domain.co.uk. Phone: +1-555-123-4567 Date: 2024-01-15 URL: https://example.com
Match Details

GroupValueCopy
Full Matchtest@example.com
Group 1test@example.com

GroupValueCopy
Full Matchmy.other.email@domain.co.uk
Group 1my.other.email@domain.co.uk
Common Patterns
  • Email
    [a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+
  • Phone (US)
    \+?1?-?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}
  • URL
    https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\....
  • Date (YYYY-MM-DD)
    \d{4}-\d{2}-\d{2}
  • IP Address
    (?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(...
  • Hex Color
    #([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})
  • Credit Card
    (?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0...
  • HTML Tag
    <[^>]+>
Regex Cheat Sheet

.Any character except newline
*Zero or more of preceding
+One or more of preceding
?Zero or one of preceding
^Start of string
$End of string

[abc]Any of a, b, or c
[^abc]Not a, b, or c
[a-z]Any lowercase letter
[A-Z]Any uppercase letter
[0-9]Any digit
\dAny digit [0-9]
\wAny word character [a-zA-Z0-9_]
\sAny whitespace character

{3}Exactly 3 times
{3,}3 or more times
{3,5}Between 3 and 5 times
*?Non-greedy zero or more
+?Non-greedy one or more

(abc)Capture group
(?:abc)Non-capturing group
(?=abc)Positive lookahead
(?!abc)Negative lookahead