Logo

    Regex Tester

    Regular Expression Pattern
    Enter your regex pattern and flags
    //
    g: global
    i: case insensitive
    m: multiline
    s: dotall
    u: unicode
    Test String
    Enter text to test your regex pattern against
    2 matches
    Contact us at support@example.com or sales@company.org for more information.
    Match Details
    Detailed information about each match
    Match 1
    Position: 14
    support@example.com

    Captured Groups:

    Group 1
    support
    Group 2
    example.com
    Match 2
    Position: 37
    sales@company.org

    Captured Groups:

    Group 1
    sales
    Group 2
    company.org
    Replace
    Replace matched text with a custom pattern

    Contact us at support@example.com or sales@company.org for more information.
    Pattern Explanation
    Understanding your regex pattern components
    \w
    character class

    Matches any word character (letter, digit, or underscore)

    .
    character class

    Matches any character except newline

    +
    quantifier

    Matches 1 or more of the preceding element

    (\w+)
    group

    Capturing group 1 - captures the matched text

    (\w+\.\w+)
    group

    Capturing group 2 - captures the matched text

    Quick Reference
    Common regex patterns and examples
    .Any character
    \dAny digit
    \wAny word character
    \sAny whitespace
    ^Start of string
    $End of string