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 400 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)
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
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)
Matching decimals in european format (dot as grouping separator, comma as decimal separator)
Java 8
A regex for validating decimal numbers in the European number format (in many parts of Europe at least, including Germany). A comma is used as a separator for the decimal number, a dot as a separator for thousand places.
Submitted by
Florian Drees
-
3 years ago
2021-03-12 23:31
(Last modified 3 years ago)
2021-03-14 17:43
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Comparison of decimals with operators such as <, >, !=, ==, <>
Java 8
Regex expression for comparing decimal numbers with the usual comparison operators such as (greater than), >= (greater than or equal to), != (not equal to), == (equal to), ... The regex also allows filtering of data from e.g. a database, whereby the first value is not needed, e.g. [FIELD] < 100
Submitted by
Florian Drees
-
3 years ago
2021-03-13 14:23
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Markdown Heading
Java 8
Parses the text following a '#' and a space all the way up to the next return character. Additional #'s can be added for parsing of other type of headings!
Submitted by
Hansen
-
2 years ago
2021-12-14 21:41
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Asciidoc PlantUML Block
Java 8
Regex to select PlantUML Block in Asciidoc documents
Submitted by
anonymous
-
2 years ago
2022-03-15 13:11
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Regex tutorial
Java 8
Case insensitive match the whole word betwween \bword\b
Submitted by
anonymous
-
3 years ago
2020-07-01 10:00
(Last modified 4 months ago)
2023-07-20 07:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Siebel Id
Golang
no description available
Submitted by
anonymous
-
7 years ago
2016-11-03 10:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Domain validation regex suitable for user input
Golang
This regexp can be used to validate domain names in Golang. While it cannot enforce the 253 character limit (with optional trailing period not included) that can be easily done by a simple len(domain) <= 253 check as well. This can be used as-is in other languages, even with RE2 regex engine. If po...
Submitted by
Alexander Dupuy
-
4 years ago
2020-03-22 22:40
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)
String doesn't start or end with . - '
Java 8
String doesn't start or end with . - '
Submitted by
VS
-
3 years ago
2021-03-16 12:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match all numbers
Java 8
Match all numbers from a string.
Submitted by
VS
-
3 years ago
2021-03-16 19:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Sınıfları Tek Tek seçme
Java 8
za
Submitted by
anonymous
-
3 years ago
2021-04-08 18:42
1
2
3
4
...
20
Find DevExpress Assembly References
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
(?P<AssemblyName>
DevExpress
\.
[
\.
(a
-
zA
-
Z)|v[0
-
9
]
{1,}
)
\,
[
|
\s
]
(?P<Version>
Version=
(?P<VersionNumber>
[
0
-
9|.
]
{1,}
){1}
)
`
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
5 years ago
2018-11-29 04:36