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 11,660 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
most sas boundaries
PCRE (PHP <7.3)
Picks up %macro, %inc, data step, and proc boundaries.
Submitted by
Leo Lopes
-
8 years ago
2015-09-08 15:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Most SAS boundaries
PCRE (PHP <7.3)
Picks up %macro, %inc, data step, and proc boundaries.
Submitted by
Leo Lopes
-
8 years ago
2015-09-08 15:10
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
starts with abc, has 123 and ends with xyz
PCRE (PHP <7.3)
#starts with abc, has 123 and ends with xyz abc123xyz
Submitted by
Kifah
-
8 years ago
2015-09-08 10:54
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Extract all XML attribute names
PCRE (PHP <7.3)
Extracts attribute names from an XML file and presents them as a simple list. Affects all attributes, having or not having values. Includes the "parent" attributes (that have no values but have nested attributes).
Submitted by
O.Khilkevych / D.Mrachkovskyi
-
8 years ago
2015-09-08 09:28
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Extract names of XML attributes that have values
PCRE (PHP <7.3)
Extracts attribute names from an XML file and presents them as a simple list. Affects only the attributes that have values. Ignores the "parent" attributes (that have no values but have nested attributes).
Submitted by
O.Khilkevych / D.Mrachkovsyi
-
8 years ago
2015-09-08 09:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
UK Companies Registration Number
PCRE (PHP <7.3)
Checks that the number and optional prefix submitted are in a valid UK Companies House format.
Submitted by
Steve Haworth
-
8 years ago
2015-09-08 09:07
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
^.+(c.youtube.com|googlevideo.com|cdn.dailymotion.com).*\$
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-09-08 06:32
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
$ en anglais ($xx.xx)
PCRE (PHP <7.3)
$ en anglais ($xx.xx)
Submitted by
EA
-
8 years ago
2015-09-07 21:59
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Nombres 4 chiffres
PCRE (PHP <7.3)
Nombres 4 chifres
Submitted by
EA
-
8 years ago
2015-09-07 21:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Numéros téléphone pas corrects (FR)
PCRE (PHP <7.3)
Numéros téléphone pas corrects (FR)
Submitted by
EA
-
8 years ago
2015-09-07 21:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Numéros téléphone corrects (anglais)
PCRE (PHP <7.3)
Numéros de téléphone avec ou sans parenthèses en anglais
Submitted by
EA
-
8 years ago
2015-09-07 21:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Site (Régis)
PCRE (PHP <7.3)
Site Régis
Submitted by
EA
-
8 years ago
2015-09-07 21:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Site FR
PCRE (PHP <7.3)
Site FR, pour trouver la version correcte.
Submitted by
EA
-
8 years ago
2015-09-07 19:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
noted xanbot
PCRE (PHP <7.3)
no description available
Submitted by
NotedBinkie
-
8 years ago
2015-09-07 15:54
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
hex string
PCRE (PHP <7.3)
match 00aabbcc... or 00:aa:bb:cc...
Submitted by
minji
-
8 years ago
2015-09-07 14:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
java
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-09-07 14:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
reddit test match
PCRE (PHP <7.3)
just a test match
Submitted by
anonymous
-
8 years ago
2015-09-07 13:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
cpc=ordinary
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-09-07 13:09
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
remove versions from packages in centos dump
PCRE (PHP <7.3)
no description available
Submitted by
Dmitry Zagorulkin
-
8 years ago
2015-09-06 19:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
MD5 (32-bit hash algorithm)
PCRE (PHP <7.3)
Encrypted string of popular hashing algorithm, and other 32-bit algorithms
Submitted by
anonymous
-
8 years ago
2015-09-06 01:56
1
...
518
519
520
521
522
523
524
...
583
hosts file parser
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^\s
*
(
#
*
)
\s
*
(
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
\s
+
(
[
a
-
zA
-
Z0
-
9
\.\-
]
+
)
(
[^
#
]
*
#
?
\w
*
\s
*
)
$
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
Jarek Wasilewski
-
8 years ago
2015-08-16 20:06