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 17,260 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
in-addr.arpa to IPv4
PCRE2 (PHP >=7.3)
Converts in-addr.arpa hostnames to IPv4 e.g. 1.0.0.127.in-addr.arpa to 127.0.0.1
Submitted by
BitesizedLion
-
3 months ago
2023-06-27 14:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MTN Momo Infos
Python
A regex to extract meaningful infos from a Momo message (mobile money) which is recurrent in Africa.
Submitted by
Hans T.
-
3 months ago
2023-06-27 14:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match Australian Adresses
PCRE2 (PHP >=7.3)
This Regex Matches Australian Adresses
Submitted by
anonymous
-
3 months ago
2023-06-27 07:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Catch packages from 'tdnf list' output
Golang
Every valid line will be of the form: . . . NOTE: the distribution tag is expected to start with at least one letter and be followed by at least one digit.
Submitted by
anonymous
-
3 months ago
2023-06-26 18:42
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Camel-Case Splitter (preserves Acronyms)
.NET (C#)
Splits camel-case string and preserves acronyms
Submitted by
Tyler S.
-
3 months ago
2023-06-26 18:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Page X of X
Python
Only matches patterns like "Page 1 of 1", "Page 2 of 2", "Page 3 of 3", "Page 4 of 4", "Page 106 of 106", etc. Only works when page numbers in the string are the same.
Submitted by
anonymous
-
3 months ago
2023-06-26 05:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find last word and space of string
ECMAScript (JavaScript)
Foo Bar
Submitted by
anonymous
-
3 months ago
2023-06-26 03:43
(Last modified 3 months ago)
2023-06-26 03:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extracting data from Authorization header
PCRE2 (PHP >=7.3)
Handful regex for parsing Authorization, WWW-Authenticate etc. headers
Submitted by
Alex Furnica
-
3 months ago
2023-06-26 01:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
minecraft commands. mcfunction syntax commands detection.
PCRE2 (PHP >=7.3)
finds every command in 1st group and subcommands in 2nd group. excludes every comments, and matches command even if it has spaces in the beginning. This exact regex is used for datapackhub.net datapack mcfunction downgrader.
Submitted by
anonymous
-
3 months ago
2023-06-25 08:32
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
URI Parser
ECMAScript (JavaScript)
A simple parser to exact all the components of a URI/URL as named groups
Submitted by
Vespion
-
3 months ago
2023-06-24 15:25
(Last modified 3 months ago)
2023-06-27 00:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract form HTML in Make (Integromat)
ECMAScript (JavaScript)
In Make (Integromat) I want to extra data in email formated in HTML I need to extract : The value for First Name, Last Name, Adresse, Zip code, City
Submitted by
anonymous
-
3 months ago
2023-06-24 12:53
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Discord Username (old & new)
PCRE2 (PHP >=7.3)
Accomodate for Discord's username changeover and match against either the old username or the new username. But only one or the other. Match: CesarHvl#9000 cesarhvl cesar.hvl...
Submitted by
cesarhvl
-
3 months ago
2023-06-23 20:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Metal Gear 3 Word Book
PCRE2 (PHP >=7.3)
Word Book of Metal Gear 3.
Submitted by
Sanperish
-
3 months ago
2023-06-23 15:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Latin Character ranges
ECMAScript (JavaScript)
Latin Character ranges
Submitted by
anonymous
-
3 months ago
2023-06-23 09:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
identify and extract Laravel-style route parameters
PCRE2 (PHP >=7.3)
Extracts a table/model name, and optionally a column name. Enforces well-formed parameters. Tested with /category/{aYes:bYes}/{cYes}/{dNo:}/{eNo:/{:fNo}
Submitted by
Martin Holt
-
3 months ago
2023-06-22 22:40
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
IPv4 Address Match
ECMAScript (JavaScript)
Matches IP addresses
Submitted by
jimbrig
-
3 months ago
2023-06-22 21:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Trim part of filename to limit length
PCRE2 (PHP >=7.3)
Truncate the middle block in the filename if it exceeds the maximum length and leave constant blocks at the beginning and end
Submitted by
Andrey Smirnov
-
3 months ago
2023-06-22 09:23
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
rustyms: pro forma single modification
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-
3 months ago
2023-06-21 21:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Busca parametros função
PCRE2 (PHP >=7.3)
Busca os parametros de uma função
Submitted by
anonymous
-
3 months ago
2023-06-21 16:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
best2bee topic standard
PCRE2 (PHP >=7.3)
Submitted by
anonymous
-
3 months ago
2023-06-21 13:17
1
...
6
7
8
9
10
11
12
...
863
image cid
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
(
src="cid:
)
.
*
?
(
.
+
?
(
\.
gif
|
\.
png
|
\.
jpg
)
)+
?
(
[^
"
]
*
)
`
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 years ago
2017-06-27 09:00