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 14,640 community submitted regex patterns...
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
-
8 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
-
8 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
-
8 years ago
2015-05-06 08:10
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Get path from URL
Python
extract the path from a URL returns one group (if matching) with the path info e.g. http://somedomain.com/some-page/ http://www.domain.com:8080/some-page/ https://www.google.com:8080/some-page/...
Submitted by
luke_aus
-
8 years ago
2015-05-05 11:47
3
5 upvotes, 2 downvotes (score 35.9%) (You must be signed in to vote)
@media query tokenizer
ECMAScript (JavaScript)
Separates media query into rule and content
Submitted by
Stephan --> CTS_AE
-
8 years ago
2015-05-05 10:16
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
french phone number (intl format)
PCRE (PHP <7.3)
little matcher for french phone number in international format (example: +33231348228)
Submitted by
Nolwennig
-
8 years ago
2015-05-05 08:52
0
6 upvotes, 6 downvotes (score 25.4%) (You must be signed in to vote)
french phone number (locale format)
PCRE (PHP <7.3)
little matcher for french phone number in locale format (example: 0231348228)
Submitted by
Nolwennig
-
8 years ago
2015-05-05 08:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Quote Parsing
PCRE (PHP <7.3)
Parses quotes and can be escaped
Submitted by
Vihan B.
-
8 years ago
2015-05-05 02:57
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Password Policy
ECMAScript (JavaScript)
Based on the below password policy need a regex in java/javascript --Maximum Occurrence (Number of repeated Characters allowed): 1 --Minimum Alpha: 1 --Minimum Embedded Numeric: 1 --Minimum Length: 8...
Submitted by
Kannan SB
-
8 years ago
2015-05-05 01:31
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Password check - at least 1 char, 1 numeric, 8-64 chars long
PCRE (PHP <7.3)
Allows for a wide range of special characters. If you want it to have no upper bound, remove the 64 (but leave the 8,.
Submitted by
Peter Speden
-
8 years ago
2015-05-04 08:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
aa
PCRE (PHP <7.3)
aaa
Submitted by
aaa
-
8 years ago
2015-05-03 19:19
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Check if number is a float
ECMAScript (JavaScript)
no description available
Submitted by
@hiaru
-
8 years ago
2015-05-03 00:59
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Pig Latin regex
PCRE (PHP <7.3)
I got really bored so I made this (not so fancy) pig latin generator
Submitted by
jojodmo
-
8 years ago
2015-05-02 03:15
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Match nth occurence of pattern
PCRE (PHP <7.3)
Match nth occurence of the patterns in the inner parenthesis. Put nth that you want to match in the curly braces (here, {3}).
Submitted by
Alex Hall
-
8 years ago
2015-05-01 17:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match nth occurence of expression
PCRE (PHP <7.3)
Change the number in curly braces (3 in this example) to match for the nth occurence of the expression in the two inner parenthesis
Submitted by
Alex Hall
-
8 years ago
2015-05-01 17:27
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
regex for redirect url
PCRE (PHP <7.3)
no description available
Submitted by
igor
-
8 years ago
2015-05-01 11:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
regex for redirect
Python
no description available
Submitted by
igor
-
8 years ago
2015-05-01 11:21
3
5 upvotes, 2 downvotes (score 35.9%) (You must be signed in to vote)
Capture only top-level (root) domain in URL
PCRE (PHP <7.3)
no description available
Submitted by
guyfawkes
-
8 years ago
2015-05-01 10:03
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Match domain part in Http(s) URLs
PCRE (PHP <7.3)
no description available
Submitted by
Nilratan
-
8 years ago
2015-05-01 04:06
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-04-30 13:16
1
...
679
680
681
682
683
684
685
...
732
Request mask idea
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
(
(
[
a
-
zA
-
Z
]
+
)
\,
)
|
(
\,
[
a
-
zA
-
Z
]
+
)
|
(
[
a
-
zA
-
Z
]
+
)
\(
(
[
a
-
zA
-
Z,
]
+
)
\)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Marco Villarreal<erick.slayer.m.v@gmail.com>
-
8 years ago
2015-04-11 19:49