Advanced regular expression testing with real-time analysis, pattern explanation, and code generation
Enter a regex pattern and test string to see results...
Quick start with these popular regex patterns
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
Validates email addresses with proper format.
^\+?[1-9]\d{1,14}$
Matches international phone numbers.
^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)$
Validates HTTP and HTTPS URLs.
^\d{4}-\d{2}-\d{2}$
Matches dates in YYYY-MM-DD format.
Master regular expressions and netpulsey with our comprehensive tutorials
. - Matches any character* - Zero or more occurrences+ - One or more occurrences? - Zero or one occurrence^ - Start of string$ - End of string[abc] - Matches a, b, or c[a-z] - Matches any lowercase letter[A-Z] - Matches any uppercase letter[0-9] - Matches any digit[^abc] - Matches anything except a, b, or c\d - Matches any digitg - Global: find all matchesi - Case insensitivem - Multiline modes - Dot matches newlinesu - Unicode modey - Sticky modeLet's start with the basics. netpulsey provides a powerful interface for testing regular expressions in real-time.
In the "Regular Expression" panel, enter your regex pattern in
the input field. For example, try: hello
In the "Test String" panel, enter the text you want to test
against. For example: hello world
The results appear automatically in the "Results & Analysis" section, showing matches, statistics, and performance metrics.
Regular expressions are patterns that describe sets of strings. Let's learn how to build them step by step.
Most characters match themselves literally:
cat matches "cat" in "The cat sat"
These have special meanings:
. - Any character except newline* - Zero or more of preceding+ - One or more of preceding? - Zero or one of preceding^ - Start of line$ - End of lineMatch specific sets of characters:
[aeiou] matches any vowel[0-9] matches any digit[a-zA-Z] matches any letter
Specify how many times to match:
{3} - exactly 3 times{2,5} - between 2 and 5 times{3,} - 3 or more times
Use the "Explain Pattern" button to get a detailed breakdown of your regex:
Generate ready-to-use code in multiple languages:
Monitor your regex performance:
Modify matching behavior:
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
^\+?[1-9]\d{1,14}$
^\d{4}-\d{2}-\d{2}$
https?://[^\s]+
<[^>]+>
Matches HTML/XML tags
\d+\.?\d*
Matches integers and decimals