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 200 community submitted regex patterns...
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
2 years ago
2022-02-03 00:00
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Mikrotik firewall logs
Golang
Matching for mikrotik ROS 7 Used in promtail and grafana
Submitted by
anonymous
-
4 months ago
2023-08-11 19:09
(Last modified 4 months ago)
2023-08-11 21:09
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
domain for Google Data Studio (re2 dialect)
Golang
Matches subdomain, domain and top level in a field that contains a urls. https://www.whatever.you.want ---> whatever.you.want
Submitted by
anonymous
-
7 years ago
2016-12-12 04:12
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Hostname validation
Golang
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
7 years ago
2017-01-29 01:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
nginx access regex loki
Golang
nginx access log regex
Submitted by
Lethisa Putri
-
a year ago
2022-07-28 11:51
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
1
Golang
11
Submitted by
anonymous
-
a year ago
2022-08-26 15:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
golang re2 negative lookahead
Golang
Aquivalent solution for golang's unsupported negative lookahead in re2 flavor of go's regex. This example provides a negative lookahead similar to (?!/api/) ignoring routes with the /api/ prefix at the start.
Submitted by
misha
-
8 months ago
2023-04-21 10:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Authelia regex path rules
Golang
Testing Authelia subdomain / path rules. You can read more at the Authelia Docs By default, this regex101 page is shown a test for a generic API path domain: "some-sub.drpranavmishra.com" resources:...
Submitted by
Pranav Mishra
-
7 months ago
2023-05-06 19:29
(Last modified 7 months ago)
2023-05-07 13:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
extract <*n or <n where n is a number
Golang
see https://stackoverflow.com/questions/76228402/regex-to-extract-n-where-n-is-digit
Submitted by
code_monk
-
7 months ago
2023-05-11 14:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Home
Golang
Dj dus er geen je een je aan je enige eerst een he we er
Submitted by
Webmaster
-
7 months ago
2023-05-13 08:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Golang
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Submitted by
anonymous
-
3 months ago
2023-09-02 02:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Kafka loki parser
Golang
Kafka loki parser
Submitted by
anonymous
-
2 months ago
2023-10-24 21:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
House and Senate Bills
Golang
Match a House or Senate bill in text.
Submitted by
Jason Putorti
-
4 days ago
2023-12-05 16:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Traefik stripprefixregex for web apps
Golang
Notes: Do not forget to escape the $ by an additional $. Escaping ? like \? does not work. But you could use [?] instead End result should be like this: "traefik.http.middlewares.r6tt-dev-web.stripprefixregex.regex=^/[a-z0-9/]+[a-z0-9]+([?]+.*)?$$"...
Submitted by
anonymous
-
3 years ago
2020-07-17 12:03
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Flexible box
Golang
no description available
Submitted by
anonymous
-
3 years ago
2020-07-30 16:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Lxx Wurzel
Golang
no description available
Submitted by
anonymous
-
3 years ago
2020-08-07 05:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
windows file name from full path
Golang
Find all string matches with dir, one or more subdir, file name with optional extension. Common example with all capturing groups included: C://ProgramFiles/MyDir1/myDir2/file.ext
Submitted by
anonymous
-
3 years ago
2020-08-10 22:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Unix file with full path
Golang
Find all string matches with dir, one or more subdir, file name with optional extension. Common example with all capturing groups included: ../../dir/SubDir1/SubDir2/file.ext ...
Submitted by
anonymous
-
3 years ago
2020-08-10 22:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
^(?:\d+[a-z]|[a-z])(?:\^\d+)(?:[\+|\-])(?:\d+[a-z])(?:[\+|\-])(?:\d+\=\d+)
Golang
for quadratic equations ||ax^2+bx+c=d||
Submitted by
anonymous
-
3 years ago
2021-01-14 02:14
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Valid email regexp in Go
Golang
A regexp to validate an email address according to https://html.spec.whatwg.org/#valid-e-mail-address . Note that the backslash in the name part of the regexp on that site is there to escape the forward slash, which is not needed in Go.
Submitted by
markus@maragu.dk
-
2 years ago
2021-06-22 11:02
1
2
3
4
...
10
Lxx Wurzel
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Golang
`
(
(
[
CTLS
]
[
1
-
9
]
+
)
\s
(
Wurzel
[
\w
]
*
)
)
`
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 years ago
2020-08-07 05:44