How to use Regex Tester

  1. Enter your regular expression in the pattern field.
  2. Enter or paste sample text to test against.
  3. View matches and groups in real time.

Example

Input

Your input or data here

Output

Result will appear here after running the tool

Frequently asked questions

What regex flavor is supported?
JavaScript's RegExp is used (ECMAScript). Some PCRE features may not be available.
How do I escape special characters?
In a string, backslash-escape characters like . * + ? ( ) [ ]. In the tool, follow JavaScript regex rules.