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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phone Guatemala
PCRE (PHP <7.3)
Regex for phones in Guatemala
Submitted by
Rodrigo Polo
-
9 years ago
2015-05-13 08:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Strip / Delete / Remove / empty paragraphs
PCRE (PHP <7.3)
You can format p:empty paragraphs with CSS, but sometimes they are not completely empty. This is meant to remove those.
Submitted by
SocialBlogsiteWebDesign.com
-
9 years ago
2015-05-12 22:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
30164958
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-05-12 20:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
StackOverflow answer for: How can I parse an attribute string to an ar
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-05-12 20:38
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
foreach
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-05-12 16:32
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
foreach
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-05-12 16:29
7
22 upvotes, 15 downvotes (score 43.5%) (You must be signed in to vote)
Match text (not within html tag)
ECMAScript (JavaScript)
no description available
Submitted by
Moistly
-
9 years ago
2015-05-12 12:38
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
IP v4 format validation
PCRE (PHP <7.3)
Valid 0.0.0.0 1.1.1.1 101.101.101.101 255.255.255.255 156.0.1.10...
Submitted by
NexRezzo
-
9 years ago
2015-05-12 09:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Numéro téléphone portable
PCRE (PHP <7.3)
prend en compte les +33 requiert un début par 06 ou 07 accepte les séparateurs de type "." ou " "
Submitted by
brad.inside@gmail.com
-
9 years ago
2015-05-11 15:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Liberal Email Address
ECMAScript (JavaScript)
Very simple & basic. More forgiving, less stringent. Allows anything which looks reasonably valid. Allows one at-symbol. Requires a two part hostname (i.e. abc@localhost is not allowed)
Submitted by
billinghamj
-
9 years ago
2015-05-11 13:18
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
File filtering by extension
PCRE (PHP <7.3)
You would like to scan a folder containing many files (Example : *.pb, *.pbi, *.pbp and *.pbf) and you are interested only by two type of files (example : *.pb and *.pbi). This expression will match only if extension match (in this case *.pb and *.pbi) otherwise no reaction. Feel free to change file...
Submitted by
StarBootics
-
9 years ago
2015-05-11 04:37
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
URL to link
PCRE (PHP <7.3)
http://blog.jmsinfo.co/?d=2015/02/16/10/17/49
Submitted by
Mickaël S.
-
9 years ago
2015-05-10 23:17
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
For justin
PCRE (PHP <7.3)
dis is why you match shit lots
Submitted by
anonymous
-
9 years ago
2015-05-10 23:11
24
67 upvotes, 43 downvotes (score 51.6%) (You must be signed in to vote)
Quote Macthing with escape
ECMAScript (JavaScript)
Matches text within quotes (", ') and escapes the charecters.
Submitted by
Vihan Bhargava
-
9 years ago
2015-05-10 20:48
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
Dotted Decimal IPv4 Adress (for programming languages)
PCRE (PHP <7.3)
Searches for dotted decimal IPv4 Adresses and saves the numbers in match groups.
Submitted by
anonymous
-
9 years ago
2015-05-09 17:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email with groups
ECMAScript (JavaScript)
Groups for: Whole email user domain Matches valid emails with numbers, chars, dots and dashes, domains with extensions of 2 or 3 letters.
Submitted by
Ruben Paz
-
9 years ago
2015-05-08 09:50
6
8 upvotes, 2 downvotes (score 49%) (You must be signed in to vote)
Extract style
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-05-07 08:32
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Dim name
PCRE (PHP <7.3)
Gets all variable names
Submitted by
Tyrone Moodley
-
9 years ago
2015-05-06 12:51
3
7 upvotes, 4 downvotes (score 35.4%) (You must be signed in to vote)
white space before punctuations, outside script and code tags
PCRE (PHP <7.3)
white space before punctuations, outside script and code tags
Submitted by
ced
-
9 years ago
2015-05-06 12:02
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
ReGEX EXPression
ECMAScript (JavaScript)
ReGEX EXPression generating Values but repeating want values should not repeat.
Submitted by
anonymous
-
9 years ago
2015-05-06 08:10
1
...
601
602
603
604
605
606
607
...
650
imperial string
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
\d
+
'
)?
(?:
(?<=
'
)
\s
*
-
\s
*
)?
(
\d
+
(?:
\s
*
\d
+
\/
\d
+
|
\.
\d
+
)?
"
)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2015-04-30 12:32