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 17,080 community submitted regex patterns...
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Asterisk channel name
PCRE (PHP <7.3)
Extract channel name from Asterisk channel line
Submitted by
Denis Bondar
-
8 years ago
2016-04-19 15:36
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Find in string template with regular expression
PCRE (PHP <7.3)
In string find regular expression or data type with limiters (start and end or summary count of symbols)
Submitted by
Bohdanov Mikhail
-
8 years ago
2016-04-19 14:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
foo
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 13:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
WINCOR
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 12:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
dates
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 12:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
dd/mm/yyyy inc. LeapYears
ECMAScript (JavaScript)
1900 - 2015. Useful for Birthdates
Submitted by
ChrisAbra
-
8 years ago
2016-04-19 12:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Url parser
PCRE (PHP <7.3)
Parse url with any complexity
Submitted by
Bohdanov Mikhail
-
8 years ago
2016-04-19 12:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Jaba
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-04-19 11:11
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Port validator
Python
Validates port numbers from 1 to 65535
Submitted by
Agustín Bouillet
-
8 years ago
2016-04-19 10:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Cisco Mac address regex
ECMAScript (JavaScript)
just a a simple match for a mac address
Submitted by
celtic
-
8 years ago
2016-04-19 09:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
2001-9999
ECMAScript (JavaScript)
2001-9999
Submitted by
anonymous
-
8 years ago
2016-04-19 08:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Exact match of whole word or phrase in string
PCRE (PHP <7.3)
word in sentense - true sentense has a word - true There is a word in the sentense - true Sentense wordless - false Sentense is empty - false words are in the sentense - false...
Submitted by
Denisenko Artem
-
8 years ago
2016-04-19 07:49
3
5 upvotes, 2 downvotes (score 35.9%) (You must be signed in to vote)
IPv4 validation
ECMAScript (JavaScript)
validate an IP v4
Submitted by
harimambura
-
8 years ago
2016-04-19 00:12
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Parse faxmail log
PCRE (PHP <7.3)
no description available
Submitted by
Michael Blair
-
8 years ago
2016-04-19 00:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Количество
PCRE (PHP <7.3)
Найти числа, которые обозначают количество.
Submitted by
anonymous
-
8 years ago
2016-04-18 16:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get table name from query
PCRE (PHP <7.3)
this extracts the table name in the from or join clause from SQL query
Submitted by
vwei02
-
8 years ago
2016-04-18 16:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get 3 segment nz table name
PCRE (PHP <7.3)
no description available
Submitted by
vwei02
-
8 years ago
2016-04-18 16:02
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
french phone number + match right part
PCRE (PHP <7.3)
Matches french numbers (not special numbers like 115, 18). First matching group contains the right part without prefix (0, +33, 33, 033, or 0033).
Submitted by
xdrm-brackets
-
8 years ago
2016-04-18 14:25
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
DNS and lenght
PCRE (PHP <7.3)
Ideal for filter Domain with or without subdomain, and length less than 256.
Submitted by
Presta-Lab
-
8 years ago
2016-04-18 12:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Pubmed Dates
PCRE (PHP <7.3)
PubMEd XML contains multiple date blocks, with or without Month, day, hour, minute. USAGE: while(my($pubstatus,$year,$month,$day,$hour,$minute)= $article =~ m% (?:\s* (?:\s(\d?)\s)* (?:\s(\d?)(?:)?\s)...
Submitted by
Andy Reid
-
8 years ago
2016-04-18 11:52
1
...
656
657
658
659
660
661
662
...
854
Bible reference extractor
5
6 upvotes, 1 downvotes (score 48.7%) (You must be signed in to vote)
Regular Expression
Python
r"
(
.
*
?
)
\s
(
\d
{1,2}
)
(?:
:
(
\d
{1,2}
)
(?:
-
(
\d
{1,2}
)?
)?
)?
"
Open regex in editor
Description
Loading markdown...
Submitted by
antaytheist-owner
-
8 years ago
2016-04-04 08:31