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 13,000 community submitted regex patterns...
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
regex101
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-06 05:11
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
URLs
PCRE (PHP <7.3)
split URL in 2 parts
Submitted by
A.L
-
9 years ago
2014-12-06 00:57
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
LGC regex
PCRE (PHP <7.3)
FIX
Submitted by
anonymous
-
9 years ago
2014-12-05 22:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
LGC regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-05 22:56
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
Any number between 0 and 10 with 0 or 1 decimal places
PCRE (PHP <7.3)
Matches any number between 0 and 10 (inclusive) with 0 or 1 decimal places. Note that .5 will NOT be matched but 0.5 will. Also 10.X will not be matched, but 10 will.
Submitted by
Matt Coubrough
-
9 years ago
2014-12-05 03:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Subquery
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-04 20:27
5
10 upvotes, 5 downvotes (score 41.7%) (You must be signed in to vote)
Two or more whitespace
PCRE (PHP <7.3)
Reeplace all two or more whitespace in string with a single chararter(ej. one whitespace)
Submitted by
Lanxe
-
9 years ago
2014-12-04 20:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Number Input That Supports Simple Math Expressions
ECMAScript (JavaScript)
RegEx matches: '5', '+5', '-5', '5+5', '-5+5', '+5+5', '5+9+7*-2' RegEx doesn't match: '5+', '5-', '5+9-', 'asdfasf5+5'
Submitted by
David Weitzenfeld
-
9 years ago
2014-12-04 19:04
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
html check in spacial case
PCRE (PHP <7.3)
it check the html content with like html tag but not html. somthing this not html content but it has content like html tag.
Submitted by
A. K. Asik
-
9 years ago
2014-12-04 11:21
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Find color
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-04 04:02
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Group variable attributes in a linux path effectively with regex
PCRE (PHP <7.3)
Group variable attributes in a linux path effectively with regex. Here the workspace can be changed and the modulename can change. Case scenario found trying to identyfy the modulename and workspace directory in Jenkins build.
Submitted by
Supratim Samanta
-
9 years ago
2014-12-03 14:09
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
match url
ECMAScript (JavaScript)
unsplash.com
Submitted by
anonymous
-
9 years ago
2014-12-03 08:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CVC
ECMAScript (JavaScript)
This will determine that an accurate CVC has been entered
Submitted by
Scott Mebberson
-
9 years ago
2014-12-03 03:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find missing or superfluous commas in "For å" constructions.
PCRE (PHP <7.3)
Finds missing commas in "For å ..." constructions according to officially ordained grammar-based comma rules.
Submitted by
Eirik Birkeland
-
9 years ago
2014-12-02 17:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-02 10:51
2
4 upvotes, 2 downvotes (score 30%) (You must be signed in to vote)
facebook post embed code
PCRE (PHP <7.3)
This pattern matches to the facebook post embed codes. It matches on each parts of the whole embed code individualy, and matches on the complete embed code either, but it requires minimum a fb-post div.
Submitted by
kristian tanacs
-
9 years ago
2014-12-02 10:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
facebook post embed code
PCRE (PHP <7.3)
This pattern matches to the facebook post embed codes. It matches on each parts of the whole embed code individualy, and matches on the complete embed code either.
Submitted by
kristian tanacs
-
9 years ago
2014-12-02 10:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
MySQL PHP connection string
PCRE (PHP <7.3)
Capture dbname and host from MySQL PHP connection string
Submitted by
anonymous
-
9 years ago
2014-12-02 10:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-01 22:44
10
11 upvotes, 1 downvotes (score 64.6%) (You must be signed in to vote)
UUID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-12-01 17:13
1
...
617
618
619
620
621
622
623
...
650
IsEmailValid()
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
\w
-
\.
]
+
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
)
|
(
(
[
\w
-
]
+
\.
)+
)
)
(
[
a
-
zA
-
Z
]
{2,4}
|
[
0
-
9
]
{1,3}
)
(
\]
?
)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-10-22 13:04