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)
used with irssi script fnotify's output with nm.pl enabled
PCRE (PHP <7.3)
transforms: network #channel message network #channel message network #channel message to network #channel message...
Submitted by
anonymous
-
8 years ago
2015-12-02 20:22
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Open and Closing Markup tags on Single Line Markup
PCRE (PHP <7.3)
Quick Dirty Working
Submitted by
Timothy Smith
-
8 years ago
2015-12-02 20:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
handlebars template match
ECMAScript (JavaScript)
returns all the handlebars elements in a line - returns {{...}} for each instance found Matches the following test {{sss}} s {{rrr}} dkdksl {{dds}} {{ dhre }} {{je ss}} returns ['{{sss}}','{{rr}}','{{dds}}','{{ dhre }}','{{je ss}}']
Submitted by
anonymous
-
8 years ago
2015-12-02 15:01
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Validate hex color
PCRE (PHP <7.3)
Validates hexadecimal color codes based on the following rule set: Optionally starting with a hash. 3 or 6 characters in length. Using the [0-9a-f] character set.
Submitted by
Nathaniel Blackburn
-
8 years ago
2015-12-02 11:14
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
...
634
635
636
637
638
639
640
...
755
test
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
%
\b
(
integer
|
insert
|
in
)
\b
%
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-11-04 23:29