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...
22
34 upvotes, 12 downvotes (score 59.7%) (You must be signed in to vote)
grab valid css rules and properties
ECMAScript (JavaScript)
no description available
Submitted by
Pavel Dominguez
-
9 years ago
2015-06-03 19:17
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Matching lines that starts with -
PCRE (PHP <7.3)
It may be useful inorder to replace those lines with li
Submitted by
Said Bakr
-
9 years ago
2015-06-03 18:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL
PCRE (PHP <7.3)
Gets all parts of URL including port, username, password, fragment, query, and path
Submitted by
Vihan Bhargava
-
9 years ago
2015-06-03 17:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
nwtis_app1_admin
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-06-03 16:28
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Zipcode Mundial
PCRE (PHP <7.3)
no description available
Submitted by
Mariela Gonzalez
-
9 years ago
2015-06-03 16:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Replace anonymous actions
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-06-03 09:19
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Port mapping
PCRE (PHP <7.3)
no description available
Submitted by
yord
-
9 years ago
2015-06-03 06:37
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
remove facebook urls from html
ECMAScript (JavaScript)
This will remove all facebook urls from a HTML string
Submitted by
Russell Miller
-
9 years ago
2015-06-03 01:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Polynomial matcher
PCRE (PHP <7.3)
Matches every polynomial you want ;)
Submitted by
Stefan Baumann
-
9 years ago
2015-06-02 19:54
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
brian
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-06-02 18:48
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
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
2015-06-02 15:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sentence and word validator
PCRE (PHP <7.3)
Last captured word available via group W. Last captured sentence available via group S. Last parenthesis stuff in 6th capturing group.
Submitted by
luis140219 on GitHub
-
9 years ago
2015-06-02 14:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL
PCRE (PHP <7.3)
simple url regex which also prevents capture of a trailing ">" (the html representation of ">")
Submitted by
Erich Spaker
-
9 years ago
2015-06-02 05:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL-Matcher
PCRE (PHP <7.3)
a simple url regex which prevents matching of a trailing ">" (the html representation of a closeing angle bracket ">")
Submitted by
Erich Spaker
-
9 years ago
2015-06-02 05:53
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
test
Submitted by
test
-
9 years ago
2015-06-01 17:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Apt Package Version validator
PCRE (PHP <7.3)
This regular expression will match the version string of a debian package
Submitted by
Anwar
-
9 years ago
2015-06-01 05:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-05-31 16:59
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
YouTube Video ID + URL validator
PCRE (PHP <7.3)
Verifies YouTube video links AND pulls the video ID from them in a matching group. Works with all capitalizations. It also matches the WHOLE link but sorts the video ID into a group. Works with JavaScript, PHP and Python. (Not tested with any other Regex engine) ...
Submitted by
Billy Venner
-
9 years ago
2015-05-31 15:44
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
list of comma separated dates in the form dd/mm/yyy
PCRE (PHP <7.3)
matches a list of comma separated dates in the form dd/mm/yyy. Between two dates must be only a comma. no other character are permitted: matches: 12/03/2011,23/19/1967 Doesn't match: 23/02/2010, 11/11/2011
Submitted by
reario
-
9 years ago
2015-05-31 13:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Line parser (split at sentence)
PCRE (PHP <7.3)
Splits a line into three parts: completed sentences from the previous line, any complete sentences, and any uncompleted sentences.
Submitted by
E.Gu
-
9 years ago
2015-05-30 18:50
1
...
597
598
599
600
601
602
603
...
650
Repeating Group
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?=
NM1
\*
03
\*
1
\*
)
.
*
?
~
(
(
REF
\*
(?<refDepCode>
\w
{2,3}
)
\*
(?<refDepVal>
.
*
?
)
~
)*
)
/
gms
Open regex in editor
Description
Loading markdown...
Submitted by
Chris.
-
9 years ago
2015-05-26 21:05