đŸĸ Company

About UsPrivacy Policy
//

Matches Found (0)

Enter a pattern to see results.

Real-Time Regular Expression (Regex) Tester

Regular Expressions (Regex) are an incredibly powerful tool for searching, matching, and manipulating text in programming. This live Regex Tester allows you to write patterns and instantly evaluate them against test strings. It features real-time syntax highlighting of matches and elegantly separates capture groups, making debugging complex patterns a breeze.

Common Regex Examples to Try

  • Match Email Addresses:
    [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
  • Match Phone Numbers:
    \+?[0-9]{1,3}?[-.\s]?\(?[0-9]{1,4}?\)?[-.\s]?[0-9]{1,4}[-.\s]?[0-9]{1,9}
  • Match URLs:
    https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()!@:%_\+.~#?&//=]*)
  • Validate Strong Password:
    (Min 8 chars, 1 letter, 1 number, 1 special char)
    ^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*#?&])[A-Za-z\d@$!%*#?&]{8,}$

Understanding Common Flags

Regex flags modify how the search behaves. (g) Global: Finds all matches rather than stopping after the first one. (i) Ignore Case: Makes the match case-insensitive. (m) Multiline: Causes the start `^` and end `$` anchors to match the start and end of a line, rather than the whole string.