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
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Slovak phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-03 21:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
email Validation
PCRE (PHP <7.3)
The email validation for registration
Submitted by
Jian
-
8 years ago
2015-12-03 18:57
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
FFXIV Lodestone Character profile
PCRE (PHP <7.3)
Parses full url up to character page. Ignores http:// and anything after character ID
Submitted by
JaveLiner
-
8 years ago
2015-12-03 15:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Decimal Range
PCRE (PHP <7.3)
Matches any range valid numerical range. i.e 1-5 ; 1.0-5 ; 1.0-5.0 ; 1-5.0
Submitted by
James Lewis
-
8 years ago
2015-12-03 12:51
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
NATO Stock Number (with or without NSC)
PCRE (PHP <7.3)
RegEx to validate a NATO Stock Number with or without the NATO Stock Code and with or without dashes
Submitted by
Matthew Perryman
-
8 years ago
2015-12-03 09:13
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
OCEAN - SELECT to DropDown grid
PCRE (PHP <7.3)
no description available
Submitted by
UndeadScythes
-
8 years ago
2015-12-03 09:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URN, match blocchi
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-03 08:56
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
uri template validation
PCRE (PHP <7.3)
validating uri template
Submitted by
Tirta Wijaya
-
8 years ago
2015-12-03 08:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Lab3
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-12-02 22:08
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
...
634
635
636
637
638
639
640
...
755
To work with comma separated lists
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
(
[
\w
+
]
*
[
,
\w
+
]
*
)
/
i
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-11-06 16:37