Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 9,420 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
{if}{endif} matcher
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-11-14 23:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
why this matches?
PCRE (PHP <7.3)
no description available
Submitted by
romans
-
10 years ago
2013-11-04 19:50
-1
5 upvotes, 6 downvotes (score 21.3%) (You must be signed in to vote)
Substitutin
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-10-29 17:56
0
7 upvotes, 7 downvotes (score 26.8%) (You must be signed in to vote)
negated special characters
PCRE (PHP <7.3)
no description available
Submitted by
Rimjhim
-
10 years ago
2013-10-29 10:54
236
717 upvotes, 481 downvotes (score 57%) (You must be signed in to vote)
Matching email addresses per RFC5322
PCRE (PHP <7.3)
The BNF rules from RFC 5322 transformed to PCRE by Nikita Popov and described in the post http://nikic.github.io/2012/06/15/The-true-power-of-regular-expressions.html.
Submitted by
Michael Musson
-
10 years ago
2013-10-23 17:46
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
quoted string possibly containing escaped delimiter
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-10-23 01:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
bridal quality
PCRE (PHP <7.3)
no description available
Submitted by
mine
-
10 years ago
2013-10-21 15:43
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
email
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-10-08 19:39
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Match quotes around words (including whitespace)
PCRE (PHP <7.3)
no description available
Submitted by
Michael de Silva
-
10 years ago
2013-10-08 07:21
3
5 upvotes, 2 downvotes (score 35.9%) (You must be signed in to vote)
Get Nth value (3 times)
PCRE (PHP <7.3)
capture Nth character from string, 3 times
Submitted by
K.
-
10 years ago
2013-10-04 03:08
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
hghdgh
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-10-03 10:00
6
28 upvotes, 22 downvotes (score 42.3%) (You must be signed in to vote)
Matching balanced parens, brackets, and braces
PCRE (PHP <7.3)
no description available
Submitted by
Noah Luck Easterly
-
10 years ago
2013-09-29 18:23
4
8 upvotes, 4 downvotes (score 39.1%) (You must be signed in to vote)
YouTube Grabber Cleanup
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2013-09-22 15:13
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
takie
PCRE (PHP <7.3)
no description available
Submitted by
sdfsdfdsf
-
10 years ago
2013-09-21 13:49
-1
1 upvotes, 2 downvotes (score 6.1%) (You must be signed in to vote)
Simple replacing. Replaced first folder in path to file.
PCRE (PHP <7.3)
Used with Java regexp. F.e. you can use replaceAll("regexp", "filePath").
Submitted by
E.ch.
-
10 years ago
2013-09-17 14:24
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Hello world example
PCRE (PHP <7.3)
no description available
Submitted by
Fedir RYKHTIK
-
10 years ago
2013-09-10 09:00
2
4 upvotes, 2 downvotes (score 30%) (You must be signed in to vote)
Get Currency SYMBOL/CODE
PCRE (PHP <7.3)
no description available
Submitted by
Ka.
-
10 years ago
2013-09-09 12:46
-1
6 upvotes, 7 downvotes (score 23.2%) (You must be signed in to vote)
Finds <font> tag
PCRE (PHP <7.3)
Useful for cleaning old html code from tags
Submitted by
anonymous
-
10 years ago
2013-09-09 06:44
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
Finds HTML img tags
PCRE (PHP <7.3)
no description available
Submitted by
Matt Solum
-
10 years ago
2013-09-09 02:48
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Verify and match e-mail address
PCRE (PHP <7.3)
no description available
Submitted by
Josh K
-
10 years ago
2013-09-08 13:28
1
...
466
467
468
469
470
471
Indian Phone Numbers!
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
\+
)
(?(1)
)
\d
{1,3}
?
[
-
]
?
\d
{10}
$
|
^
(
[^
0
]
)
(?(1)
)
\d
{9}
?
$
|
^
(
[
0
]
)
(?(1)
)
\d
{10}
?
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
Prateek Jain
-
8 years ago
2015-06-02 15:16