Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,000 community submitted regex patterns...
1
Replace second (or further) html statement in a whole code
ECMAScript (JavaScript)
This regex replace the second tag content which has the prefix ":". If you want to replace the third, just increase the statement {1} to {2}, and so go on.
Submitted by
Caio Oliveira
-
11 years ago
1
Select inside <a> tag
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
11 years ago
1
Parse a HTML URL
Python
Break a URL into parts: protocol url path get parameters hash
Submitted by
Dale O'Brien
-
10 years ago
1
Matching Multiline Strings in Large Text File
PCRE (PHP <7.3)
Need Help, Matching Multiline Strings in Large Text File
Submitted by
jholderman
-
10 years ago
1
4-digit numeric w/o leading zero and no repeat digits
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
french phone number (intl format)
PCRE (PHP <7.3)
little matcher for french phone number in international format (example: +33231348228)
Submitted by
Nolwennig
-
10 years ago
1
IP v4 format validation
PCRE (PHP <7.3)
Valid 0.0.0.0 1.1.1.1 101.101.101.101 255.255.255.255 156.0.1.10...
Submitted by
NexRezzo
-
10 years ago
1
Indian Phone Numbers!
PCRE (PHP <7.3)
This is not supported in Javascript! Works well for php, python. Examples: +91-8800119719, 08800119719, 8800119719, +918800119719 etc.
Submitted by
Prateek Jain
-
9 years ago
1
dd/mm/yyyy validation regexp
Python
no description available
Submitted by
uknnown
-
9 years ago
1
US Phone Number
ECMAScript (JavaScript)
The way I like it formatted
Submitted by
@mattbontrager
-
9 years ago
1
Full Name
ECMAScript (JavaScript)
cheking full name e.g. Mathias d'Arras Martin Luther King, Jr. Hector Sausage-Hausen
Submitted by
Aymen
-
9 years ago
2
Basic Phone Number Verification
PCRE (PHP <7.3)
Verifies a phone number
Submitted by
anonymous
-
11 years ago
2
Get Currency SYMBOL/CODE
PCRE (PHP <7.3)
no description available
Submitted by
Ka.
-
11 years ago
2
JavaScript trim string
ECMAScript (JavaScript)
Trim leading/trailing space on a string: do not use /gm flags. Trim each line of a multiline string: use the /gm flag.
Submitted by
https://github.com/naomik
-
10 years ago
2
haml attribute parsing
ECMAScript (JavaScript)
no description available
Submitted by
OnlineCop
-
10 years ago
2
filename split 2
ECMAScript (JavaScript)
no description available
Submitted by
Miloš Ratković
-
10 years ago
2
full asshole
ECMAScript (JavaScript)
no description available
Submitted by
alex
-
10 years ago
2
Regex Capture String
PCRE (PHP <7.3)
Capture out Parts using regular expressions
Submitted by
Brandon
-
10 years ago
2
phone regex
ECMAScript (JavaScript)
Match phone number with extensions or not
Submitted by
Mélissa Dumont
-
10 years ago
2
Email validation
ECMAScript (JavaScript)
Very crude, but effective email validation.
Submitted by
Ryan Oaks
-
10 years ago
1
...
853
854
855
856
857
...
900
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
(?:
(
[^
\:
]
*
)
\:\/\/
)?
(?:
(
[^
\:\@
]
*
)
(?:
\:
(
[^
\@
]
*
)
)?
\@
)?
(?:
(
[^
\/\:
]
*
)
\.
(?=
[^
\.\/\:
]
*
\.
[^
\.\/\:
]
*
)
)?
(
[^
\.\/\:
]
*
)
(?:
\.
(
[^
\/\.\:
]
*
)
)?
(?:
\:
(
[
0
-
9
]
*
)
)?
(
\/
[^
\?
#
]
*
(?=
.
*
?
\/
)
\/
)?
(
[^
\?
#
]
*
)?
(?:
\?
(
[^
#
]
*
)
)?
(?:
#
(
.
*
)
)?
/
gm
Open regex in editor
Description
Everything, including proto, user:pass, host, query params and anchors
Submitted by
baadf00d
-
9 years ago