🔍

Regex Tester & Pattern Library

Test regular expressions with real-time matching, highlighting, and built-in pattern library.

✓ 100% Free ✓ No Sign-up ✓ Privacy-First

📚 Pattern Library (click to use)

Matches: 0
Flags: g

Highlighted Matches

Enter a pattern and text to see matches highlighted here...

About Regular Expressions

Regular expressions (regex) are patterns used to match character combinations in strings. They're essential for:

  • Form validation (emails, phone numbers, etc.)
  • Search and replace operations
  • Text parsing and extraction
  • Data cleaning and formatting
  • Log file analysis

Quick Reference

  • . - Matches any character except newline
  • \d - Matches any digit (0-9)
  • \w - Matches word characters (letters, digits, underscore)
  • \s - Matches whitespace (space, tab, newline)
  • * - Matches 0 or more of the previous element
  • + - Matches 1 or more of the previous element
  • ? - Matches 0 or 1 of the previous element
  • ^ - Start of string/line
  • $ - End of string/line
  • [abc] - Matches any character in the set
  • [^abc] - Matches any character NOT in the set
  • (group) - Capturing group