Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 5,780 community submitted regex patterns...
1
instagram url
Python
gets the url instagram
Submitted by
samuel06santos
-
5 months ago
1
Remove ANSI Escape Code
Python
Remove ANSI Escape Code
Submitted by
diaogong
-
5 months ago
1
Initializing identifiers
.NET 7.0 (C#)
Initializing identifiers
Submitted by
anonymous
-
5 months ago
1
Simple URL validation
.NET 7.0 (C#)
Validates protocol, sub-domain, domain, and top-level domain. No port number and query string parameters validation is made.
Submitted by
anonymous
-
6 months ago
1
Kafka loki parser
Golang
Kafka loki parser
Submitted by
anonymous
-
6 months ago
1
OpenWeather API Key Regex
ECMAScript (JavaScript)
A simple regex to match API keys for OpenWeather map. Matches 32 hexadecimal character strings.
Submitted by
anonymous
-
6 months ago
1
Roblox Account Cookie RegExp
ECMAScript (JavaScript)
A regex to match against Roblox cookies. Two captures; the first is the warning text; the second is the cookie itself.
Submitted by
anonymous
-
6 months ago
1
Discord Bot Token
ECMAScript (JavaScript)
JS/TS regex for token validation.
Submitted by
anonymous
-
6 months ago
1
hyphenize
ECMAScript (JavaScript)
convert 16 chars into four hyphen separated groups
Submitted by
mco
-
6 months ago
1
English address
ECMAScript (JavaScript)
English address that can start with numbers, # sign or words (\w) followed with any combination of previously mentioned. Multi-line, global and case insensitive supported. Address CANNOT START WITH \w character _ or 0 or any other symbols
Submitted by
Dr St Clair Clarke
-
6 months ago
(Last modified 6 months ago)
1
REGEX for parsing Received value in email headers (RFC822)
ECMAScript (JavaScript)
Example: Received: from VI1PR0102CA0029.eurprd01.prod.exchangelabs.com (2603:10a6:802::42) by VE1PR01MB5599.eurprd01.prod.exchangelabs.com (2603:10a6:803:11f::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12; Thu, 9 Jan ...
Submitted by
anonymous
-
6 months ago
1
Extract tag name and its content
Python
Lrc file
Submitted by
Cricar
-
6 months ago
1
Match each tag
Python
Match each tag in a lrc file
Submitted by
Cricar
-
6 months ago
1
Group tags and lyrics
Python
Group tags and lyrics in one lrc file, multiple lines
Submitted by
Cricar
-
6 months ago
1
nomor telp lokal wakanda
ECMAScript (JavaScript)
indonesian telephone number
Submitted by
aku dewe
-
6 months ago
1
LNAV Format for Salt Log File
Python
Beginnings of defining a log format for Salt to use within LNAV. https://docs.lnav.org/en/latest/formats.html
Submitted by
anonymous
-
6 months ago
(Last modified 6 months ago)
3
Placeholder resolving
.NET 7.0 (C#)
.Net regular expression for resolving placeholders in the format of ${rewriter(multilevel:key)?fallback} (+ variations)
Submitted by
anonymous
-
6 months ago
1
Validate and split street and house number (leading house number)
ECMAScript (JavaScript)
Validate and split street address (street and house number) with leading house number
Submitted by
anonymous
-
6 months ago
1
Validate and split street and house number (trailing house number)
ECMAScript (JavaScript)
Validate and split street address (street and house number) with trailing house number
Submitted by
anonymous
-
6 months ago
(Last modified 6 months ago)
1
Validate email address (unicode)
ECMAScript (JavaScript)
Validate unicode email addresses
Submitted by
anonymous
-
6 months ago
1
2
3
4
5
6
...
289
Bespoke NGINX Log Parse
0
Regular Expression
Python
r'
(?P<ip>
\S
*
)
(?P<firstseperator>
-
)
(?P<userid>
\S
+
|
-
)
(?P<timestamp>
\[
\S
+
\S
+
)
"
(?P<URL>
\S
+
|
\S
+
\S
+
[
A
-
Z/0
-
9.
]
+
)
"
(?P<http_code>
[
0
-
9
]
+
)
(?P<guessing_size>
[
0
-
9
]
+
)
"
(?P<endpoint_url>
\S
+
|
-
)
"
"
(?P<client_and_version>
[
a
-
zA
-
Z/0
-
9.-
]
+
)
'
gm
Open regex in editor
Description
Splits NGINX logs into named groups
Submitted by
Simon
-
a year ago