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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract schema and domain from URI.
PCRE2 (PHP >=7.3)
Doesn't work on domains that include dashes (after the dash).
Submitted by
Roke Julian Lockhart Beedell
-
3 months ago
2023-07-04 22:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
telegram links
PCRE2 (PHP >=7.3)
.
Submitted by
AC Lover
-
3 months ago
2023-07-04 18:23
(Last modified 3 months ago)
2023-07-04 18:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Single line of .env file
PCRE2 (PHP >=7.3)
Parse a single line of a .env file From repo dotenv - source code here.
Submitted by
Mot (https://github.com/motdotla)
-
3 months ago
2023-07-03 20:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CUIT Argentina sin guiones
PCRE2 (PHP >=7.3)
CUIT Argentina sin guiones
Submitted by
Lucas David Ferrero
-
3 months ago
2023-07-03 12:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
All Strings for same-lines, Syntax or Parsing
PCRE2 (PHP >=7.3)
All Strings on One Line Php java javascript python escapes all regex...
Submitted by
kai gouthro
-
3 months ago
2023-07-02 10:16
(Last modified 3 months ago)
2023-07-02 10:19
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
regex data e time
ECMAScript (JavaScript)
pega a data e time
Submitted by
jaffar
-
3 months ago
2023-07-01 00:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Nginx parse error log msg
Python
Regex to parse nginx error logs, that can't be converted to json in nginx. To use with fluentbit update group labels from "?P" to "?"
Submitted by
diepes
-
3 months ago
2023-06-30 01:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
NLP_Regex
Python
Learning Regex for NLP
Submitted by
anonymous
-
3 months ago
2023-06-29 15:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
international telephone number incl. european notation
PCRE2 (PHP >=7.3)
international telephone number incl. european notation
Submitted by
Florian Ledeboer
-
3 months ago
2023-06-29 14:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Валидность телефона Российской Федерации форматов "+7", "7", "8"
ECMAScript (JavaScript)
Работает с форматами +7, 7, 8 Варианты валидации любые.
Submitted by
anonymous
-
3 months ago
2023-06-28 18:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
request_uri_no_qs
PCRE2 (PHP >=7.3)
Regular expression used to get the encoded URI portion of the $request_uri when unencoded $uri breaks a reverse proxy. map $request_uri $request_uri_no_qs { "~^(?+)\?(?:.*)?" $m; default $request_uri; } `
Submitted by
jpatton@gmail.com
-
3 months ago
2023-06-28 14:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex para Logs de Kiwi Log Forwarder
Python
Los logs de Kiwi Log Forwarder no se guardan de manera correcta como un CSV, por lo que tengo la idea de con una regex vaciarlos a un CSV bien hecho para poder tener mejor visualización de estos
Submitted by
anonymous
-
3 months ago
2023-06-27 23:55
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
1
...
6
7
8
9
10
11
12
...
863
Angular commit
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
^
(
[
a
-
zA
-
Z
]
*
)
[
\s\t\x{00a0}
]
*
\(
(
[
"'
\\
\w
-
\/
\s\t\x{00a0}
]
*
)
\)
[
\s\t\x{00a0}
]
*
\:
?
[
\s\t\x{00a0}
]
*
(
.
*
)
`
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 years ago
2017-08-23 13:07