Devorithm Docs Tools

Regex Tester & Validator

Test and debug regular expressions with real-time match highlighting. Extract groups, explain patterns, and perform find & replace operations. Includes a library of common regex patterns.

Regular Expression Pattern
Flags
Test String

Common Patterns Library
  • Email

    ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
    Validates email addresses

  • URL

    https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)
    Matches HTTP/HTTPS URLs

  • Phone (US)

    ^(\+1)?[-. ]?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4}$
    Matches US phone numbers

  • IPv4 Address

    ^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$
    Matches IPv4 addresses

  • Date (YYYY-MM-DD)

    ^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$
    Matches dates in YYYY-MM-DD format

  • Hexadecimal Color

    ^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$
    Matches hex color codes

  • Credit Card

    ^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|6(?:011|5[0-9]{2})[0-9]{12}|(?:2131|1800|35\d{3})\d{11})$
    Matches major credit card formats

  • Username

    ^[a-zA-Z0-9_-]{3,16}$
    Alphanumeric username, 3-16 characters

  • Password (Strong)

    ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$
    Minimum 8 chars, 1 uppercase, 1 lowercase, 1 number, 1 special char

  • HTML Tags

    <([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)
    Matches HTML tags

All processing happens locally in your browser. Your data is never uploaded to our servers.