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 2,260 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match all links except for links enclosed in curly brackets
PCRE2 (PHP >=7.3)
Match all links except for links enclosed in curly brackets
Submitted by
anonymous
-
a year ago
2022-10-05 08:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match Instagram Post Url
PCRE2 (PHP >=7.3)
Match Instagram Post Url Matches: https://www.instagram.com/p/CiqWEQMOVNo/ https://www.instagram.com/p/CiqWEQMOVNo www.instagram.com/p/CiqWEQMOVNo https://instagram.com/p/CiqWEQMOVNo...
Submitted by
anonymous
-
a year ago
2022-10-04 12:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match the html tags with only whitespaces
PCRE2 (PHP >=7.3)
Match the html tags with only whitespaces
Submitted by
anonymous
-
a year ago
2022-10-04 08:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Crazy Caps Your String -
PCRE2 (PHP >=7.3)
Capitalize every other letter and lower case every alternate letter in your string!
Submitted by
anonymous
-
a year ago
2022-10-04 00:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
VK owner id and item id regex
PCRE2 (PHP >=7.3)
This regex allows access to owner id and item id of VK url.
Submitted by
MagicWinnie
-
a year ago
2022-10-03 21:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Strip datetime -> date
PCRE2 (PHP >=7.3)
Strip datetime -> date
Submitted by
anonymous
-
a year ago
2022-10-03 17:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sports Release Regex attempt #1
PCRE2 (PHP >=7.3)
Yes. Its a thing.
Submitted by
anonymous
-
a year ago
2022-10-03 17:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
processo
PCRE2 (PHP >=7.3)
Preciso fazer um Input. 1234569-19.2009.7.19.1009 sobre alterando esses campos AnumeroProcesso%3AnumeroSequencial= ficaria 1234569 AnumeroDigitoVerificador= ficaria 19 AnumeroProcesso%3AAno=ficaria 2009 AnumeroProcesso%3AramoJustica=ficaria 7...
Submitted by
Anderson
-
a year ago
2022-10-03 17:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
marcelobc548@gmail.com - Extrair Seções e Aptos
PCRE2 (PHP >=7.3)
Extrair número da seções e quantidade de eleitores aptos.
Submitted by
anonymous
-
a year ago
2022-10-03 13:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Polynomial spotter
PCRE2 (PHP >=7.3)
spots polynomial pieces and captures the exponent and coefficient
Submitted by
anonymous
-
a year ago
2022-10-03 08:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
matches 4 or 6 or 8 digit which might be otp
PCRE2 (PHP >=7.3)
test
Submitted by
test
-
a year ago
2022-10-02 15:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match and capture (go) one or more times
PCRE2 (PHP >=7.3)
Match and capture (go) one or more times
Submitted by
anonymous
-
a year ago
2022-10-01 15:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract countries names in a spaceless string
PCRE2 (PHP >=7.3)
works with strings such as: U.K.TanzaniaU.S.A., UkraineFrance, GermanyU.S.A. Issues: Doesn't work with repeating acronyms, e.g.: U.K.U.S.A.; possible fix: (?:[A-Z]\.){1,3}|A-Z+ Works only with country's acronyms that have the same number of dots as the number of capital letters
Submitted by
whatserface
-
a year ago
2022-09-30 16:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
InputInteger
PCRE2 (PHP >=7.3)
InputInteger
Submitted by
anonymous
-
a year ago
2022-09-30 16:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
hidrologia
PCRE2 (PHP >=7.3)
qualidade
Submitted by
anonymous
-
a year ago
2022-09-30 14:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get X range of words from a string
PCRE2 (PHP >=7.3)
Get words in a certain range from a varied string
Submitted by
anonymous
-
a year ago
2022-09-29 14:38
(Last modified a year ago)
2022-10-01 14:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Url breakdown
PCRE2 (PHP >=7.3)
Check validity of url and break it down into logical parts.
Submitted by
jokle
-
a year ago
2022-09-29 08:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match a substring starting from a word and ending at a word
PCRE2 (PHP >=7.3)
match a substring starting from a word and ending at a word
Submitted by
anonymous
-
a year ago
2022-09-28 20:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sélectionner le contenu entre parenthèses
PCRE2 (PHP >=7.3)
Sélectionner le contenu entre parenthèses (parenthèses comprises)
Submitted by
scalpa
-
a year ago
2022-09-28 09:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Celular Brasil
PCRE2 (PHP >=7.3)
Validar celular do Brasil
Submitted by
Paulo Neves
-
a year ago
2022-09-26 15:12
1
...
41
42
43
44
45
46
47
...
113
All kinds of stupid Content-Types
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
[
\w\d
\/\.\-\+
]
+
(?:
\s
?
;
?
(
\s
+
)?
(
(?:
boundary
|
charset
)
\s
?
=
\s
?
[
'
\"
\w\d
\.\-
]
+
)?
;
?
(
\s
+
)?
)?
(?:
\s
?
(?:
gzip
|
deflate
|
br
|
,
)+
\s
?
;
?
(
\s
+
)?
)?
$
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-08-12 05:11