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 5,820 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
get oneoff link
PCRE2 (PHP >=7.3)
Retrieves the path of the oneoff from a fastfile using the "android upload_to_s3" lane
Submitted by
Sebastian Silbermann
-
a year ago
2022-06-21 15:47
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
get connection string form global.asa
PCRE2 (PHP >=7.3)
get connection string form global.asa for vb
Submitted by
Yassine Naji
-
a year ago
2022-06-21 15:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
8~20的数字+小写字母+大写字母+可选其他字符
PCRE2 (PHP >=7.3)
如果要指定可选的特殊字符,把| 后面的 酌情替换
Submitted by
devwolf__copy-by_天涯孤雁
-
a year ago
2022-06-21 01:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
scss class matching
PCRE2 (PHP >=7.3)
scss class matching
Submitted by
lucas
-
a year ago
2022-06-20 15:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
First name Universal
PCRE2 (PHP >=7.3)
This Regex is for first name and last name with multiple spaces
Submitted by
Tej
-
a year ago
2022-06-20 15:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Time regex
PCRE2 (PHP >=7.3)
Regex that selects hour, minute, second, and Meridiem Indicator from a string.
Submitted by
PieterT2000
-
a year ago
2022-06-20 10:32
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
lat cyr letters
Java 8
only lat and cyr letters
Submitted by
anonymous
-
a year ago
2022-06-20 05:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ipv4 match
PCRE2 (PHP >=7.3)
ipv4 match
Submitted by
anonymous
-
a year ago
2022-06-20 04:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find WikiRace baseURL
ECMAScript (JavaScript)
https://github.com/d-k-bo/WikiRace
Submitted by
anonymous
-
a year ago
2022-06-19 15:09
(Last modified a year ago)
2022-07-27 11:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Placas de veículos do Brasil (Mercosul e pré-Mercosul)
PCRE2 (PHP >=7.3)
Expressão regular baseada na publicada no artigo REGEX para Placas Brasileiras (incluindo Mercosul) de Ricardo Coelho.
Submitted by
Lucas Miranda <https://github.com/liddack>
-
a year ago
2022-06-19 01:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
whitespace only lines
PCRE2 (PHP >=7.3)
Matches whitespace only lines common to annoying website code.
Submitted by
anonymous
-
a year ago
2022-06-18 22:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
LinkedIn Profile Url
Java 8
LinkedIn Profile Url
Submitted by
Morons
-
a year ago
2022-06-18 09:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Instagram Profile Url Test
Java 8
Testing all known Variations of Instagram Profile Url's
Submitted by
CryptoCode
-
a year ago
2022-06-18 09:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email - Works 99% close to oficial Standards
Java 8
Email - Works 99% close to oficial Standards, even better
Submitted by
CryptoCode
-
a year ago
2022-06-18 08:09
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
股票代码
PCRE2 (PHP >=7.3)
aa
Submitted by
vv
-
a year ago
2022-06-18 01:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Simple password validator
ECMAScript (JavaScript)
verify that a password string is from length 8 - 16, while allowing word and non-word characters.
Submitted by
anonymous
-
a year ago
2022-06-17 06:38
(Last modified a year ago)
2022-06-17 06:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Phone # Validation
ECMAScript (JavaScript)
This recognizes phone numbers, including country codes if they're present.
Submitted by
Phoenix Staley
-
a year ago
2022-06-16 17:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
4 spaces and tabs mixed indentation replace pattern
PCRE2 (PHP >=7.3)
With this expression you can easily replace the indentation from 4 spaces and tabs mixed indented file to a pure indentation.
Submitted by
hNczy
-
a year ago
2022-06-16 11:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get HTML attribute
PCRE2 (PHP >=7.3)
Get HTML attribute with /" inside
Submitted by
anonymous
-
a year ago
2022-06-16 09:59
(Last modified a year ago)
2022-06-21 06:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parse html tag attributes into key:value pairs
ECMAScript (JavaScript)
([a-zA-Z\//]){0}\s(?[a-zA-Z]+)=?("(?[A-Za-z\d\s;:.\-\/\\%]*)")?
Submitted by
anonymous
-
a year ago
2022-06-16 07:56
(Last modified a year ago)
2022-06-17 09:44
1
...
77
78
79
80
81
82
83
...
291
extract query and path params - incomplete
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
[
a
-
z
]
[
a
-
z0
-
9+
\-
.
]
*
:
(
\/\/
[^
\/
?#
]
+
)?
)?
(
(?:
\/
[
a
-
z
]
{4}
\/
(
[
a
-
z
]
{2}
\-
[
a
-
z
]
{2}
)
\/
)
(
[
a
-
z0
-
9
\-
._~%!$&'()*+,;=:@
\/
]
*
)
)
(?:
\?
?
)
(
(
[
a
-
z0
-
9
\-
._~%!$'()*+,;:@
]
+
)
(?:
\=
)
(
[
a
-
z0
-
9
\-
._~%!$'()*+,;:@
\/
]
*
)
)*
(
&
*
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
2 years ago
2022-05-06 17:21