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 14,840 community submitted regex patterns...
11
16 upvotes, 5 downvotes (score 54.9%) (You must be signed in to vote)
Full url parse, domain, path, params
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-25 20:54
9
12 upvotes, 3 downvotes (score 54.8%) (You must be signed in to vote)
Letters, numbers and blank space
PCRE (PHP <7.3)
The following regular expression matches only letter a-z A-Z numbers 0-9 and a blank space for a given string.
Submitted by
Jordan Raychev
-
8 years ago
2016-01-04 17:31
17
31 upvotes, 14 downvotes (score 54.3%) (You must be signed in to vote)
Capture comma separated numbers
PCRE (PHP <7.3)
Capture comma separated numbers, no matter if there are spaces before or after the commas.
Submitted by
Fernando Nunes
-
8 years ago
2015-07-19 01:57
86
297 upvotes, 211 downvotes (score 54.1%) (You must be signed in to vote)
Password Validation
ECMAScript (JavaScript)
Checks that a password has a minimum of 6 characters, at least 1 uppercase letter, 1 lowercase letter, and 1 number with no spaces.
Submitted by
Christian Klemp
-
8 years ago
2015-07-08 18:46
31
77 upvotes, 46 downvotes (score 53.8%) (You must be signed in to vote)
ninite
PCRE (PHP <7.3)
no description available
Submitted by
peek
-
8 years ago
2015-09-29 11:28
29
70 upvotes, 41 downvotes (score 53.8%) (You must be signed in to vote)
Wrap long string to spec length
PCRE (PHP <7.3)
no description available
Submitted by
fullpipe
-
10 years ago
2013-07-21 20:34
11
17 upvotes, 6 downvotes (score 53.5%) (You must be signed in to vote)
find all link(<a>) tags expect your links in href attribute
ECMAScript (JavaScript)
YourLink - not found AnotherLink - found
Submitted by
KoT
-
8 years ago
2015-07-29 11:09
10
15 upvotes, 5 downvotes (score 53.1%) (You must be signed in to vote)
Just validate one sequence of
PCRE (PHP <7.3)
sdfs sdfs FLBREV00022230 dsfsdfs sdfsf FLBREV00022234 In this case is false
Submitted by
Fiipe
-
9 years ago
2014-10-23 13:22
10
15 upvotes, 5 downvotes (score 53.1%) (You must be signed in to vote)
Valid Telephone Number
ECMAScript (JavaScript)
This regex validates varying types of telephone numbers.
Submitted by
Adam Recvlohe
-
8 years ago
2015-12-09 01:04
17
34 upvotes, 17 downvotes (score 53%) (You must be signed in to vote)
Between tags content
PCRE (PHP <7.3)
no description available
Submitted by
AgustÃn Bouillet
-
8 years ago
2015-10-24 10:52
6
7 upvotes, 1 downvotes (score 52.9%) (You must be signed in to vote)
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
PCRE (PHP <7.3)
A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-*
Submitted by
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
-
9 years ago
2014-11-03 16:04
6
7 upvotes, 1 downvotes (score 52.9%) (You must be signed in to vote)
TimezoneOffset
ECMAScript (JavaScript)
used to parse timezone in the format -08:00 or +05:30
Submitted by
Neha
-
9 years ago
2014-12-09 07:00
15
29 upvotes, 14 downvotes (score 52.5%) (You must be signed in to vote)
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
robwa
-
8 years ago
2015-12-17 08:14
8
11 upvotes, 3 downvotes (score 52.4%) (You must be signed in to vote)
Extract url GET parameters
PCRE (PHP <7.3)
Returns key/value pair of a url. Also works with google fonts which has additional information
Submitted by
anonymous
-
9 years ago
2014-09-16 08:37
8
11 upvotes, 3 downvotes (score 52.4%) (You must be signed in to vote)
If-Then-Else Conditionals
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-28 15:52
8
11 upvotes, 3 downvotes (score 52.4%) (You must be signed in to vote)
money: either 0 or 2 dp
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-18 19:34
28
77 upvotes, 49 downvotes (score 52.4%) (You must be signed in to vote)
CSV line parsing
PCRE (PHP <7.3)
Captures all fields from a CSV file's line. Can be customized with user-defined field separator and protecting character.
Submitted by
Various
-
9 years ago
2014-10-15 13:22
51
191 upvotes, 140 downvotes (score 52.3%) (You must be signed in to vote)
Disorted Email Addresses
PCRE (PHP <7.3)
Matches distorted email addresses and converts them back to real ones.
Submitted by
dislick
-
11 years ago
2013-01-16 14:11
7
9 upvotes, 2 downvotes (score 52.3%) (You must be signed in to vote)
Sentence grabber /w extra check
PCRE (PHP <7.3)
Grabs sentences including terms like: e.g. z.b. Figs.These get caught in 1st capturing group. Problem: how to only accept matching sentences which contain pattern \b\d+[a-z]{0,2}\b?
Submitted by
light0
-
10 years ago
2014-05-29 17:30
7
9 upvotes, 2 downvotes (score 52.3%) (You must be signed in to vote)
Max - URL Extract
PCRE (PHP <7.3)
no description available
Submitted by
Ayush
-
8 years ago
2016-05-09 10:38
1
2
3
4
5
6
...
742
CSV line parsing
28
77 upvotes, 49 downvotes (score 52.4%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
\s
*
(?:
\"
(
[^
\"
]
*
)
\"
|
(
[^
,
]
+
)
)
\s
*
,
?
)+
?
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Various
-
9 years ago
2014-10-15 13:22