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 15,100 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Project
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-02 10:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Multiline shortest match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-02 02:17
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Oxford comma
ECMAScript (JavaScript)
Insert comma in lists before the word "and" or "or".
Submitted by
Mogsdad w/ assist from TerryAtOpus
-
8 years ago
2015-12-01 21:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Pattern to get trains station names.
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-01 18:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Expanded visual basic functions/subs
PCRE (PHP <7.3)
I've been using this regex to get a list of expanded functions/subs (specifically the names of them from the 'func' capture group) from VB code that is used as input in a code converter for a project at work.
Submitted by
Timothy Smith
-
8 years ago
2015-12-01 18:26
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Expanded Visual Basic Properties
PCRE (PHP <7.3)
I've been using this regex to get a list of expanded properties (specifically the property names from the 'prop' capture group) from VB code that is used as input in a code converter for a project at work.
Submitted by
Timothy Smith
-
8 years ago
2015-12-01 18:09
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Website URL
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-01 17:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Récupérer information
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-01 15:24
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Récupérer la bonne information
PCRE (PHP <7.3)
Groupe d'information $1 $2 $3 $1 = Prénom + Nom $2 = (Information à récupérer ou à supprimer) $3 = Numéro de téléphone
Submitted by
Terence DEMOL
-
8 years ago
2015-12-01 15:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Train Amadeus
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-01 14:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Eve Online Stations
PCRE (PHP <7.3)
Extracts system name, planet, moon (if applicable), and NPC faction for NPC stations in the MMORG Eve Online.
Submitted by
Rothbard Leviathan
-
8 years ago
2015-12-01 14:18
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Nato Stock Number (Add dashes)
PCRE (PHP <7.3)
Takes a 13 digit non-dashed Nato Stock Number and uses the Substitution to add the dashes in
Submitted by
Matthew Perryman
-
8 years ago
2015-12-01 12:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
phone number belarus updated 2
ECMAScript (JavaScript)
+375 (33) 302-66-60 or +375333026660 http://stackoverflow.com/questions/33056434/regex-for-phones-at-belarus
Submitted by
anonymous
-
8 years ago
2015-12-01 12:04
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
belarus phone number updated
ECMAScript (JavaScript)
+375 (33) 302-66-60 or +37533302-66-60 http://stackoverflow.com/questions/33056434/regex-for-phones-at-belarus
Submitted by
anonymous
-
8 years ago
2015-12-01 12:00
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Xml/html regex
PCRE (PHP <7.3)
Common regex for use with xml/html files
Submitted by
wonzbak
-
8 years ago
2015-12-01 09:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Visa Country of Issue
ECMAScript (JavaScript)
3 alpha characters expected, except in the instance of Germany which allows 1 alpha character.
Submitted by
anonymous
-
8 years ago
2015-12-01 01:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
VISA Name
ECMAScript (JavaScript)
Alpha numeric characters including "hyphens" "quotation marks" and "semicolons" only
Submitted by
ME
-
8 years ago
2015-12-01 01:37
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
index
PCRE (PHP <7.3)
include index.aspx
Submitted by
anonymous
-
8 years ago
2015-11-30 15:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Split number by thousands
PCRE (PHP <7.3)
Basically take a number and split it into thousands. I.e. take three chars from the end of the number until there is 3 or less chars left.
Submitted by
Axb
-
8 years ago
2015-11-30 13:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ZAP exclude URL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-30 13:20
1
...
634
635
636
637
638
639
640
...
755
isDate
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(
[
0
-
3
]
{1}
?
[
0
-
9
]
{1}
)
(
\/
|
-
)
(
[
0
-
1
]
{1}
?
[
0
-
9
]
{1}
)
(
\/
|
-
)
(
[
1
-
2
]
{1}
[
0
-
9
]
{3}
)
(
|
-
|
-
)
(
[
1
-
9
]
{1}
[
0
-
9
]
{1}
|
[
0
-
2
]
{1}
[
0
-
9
]
{1}
)
:
(
[
0
-
5
]
{1}
?
[
0
-
9
]
{1}
)
:
(
[
0
-
5
]
{1}
?
[
0
-
9
]
{1}
)
$
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
Rafael Fischer
-
8 years ago
2015-11-05 19:09