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
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 420 community submitted regex patterns...
1
Android Package Validation - Java Regex
Java 8
Note: replace the "\." with "\\." if you paste this on your java. The regex will match if the package name is valid. example: my.new.hello.world.app Supports: a-z 0-9 and underscore Supports multiple dots
Submitted by
dlv_dls2
-
3 years ago
1
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
3 years ago
1
Matching build file names
Java 8
Matches various versions of build file filenames from our jenkins builds
Submitted by
Sean Furrh
-
3 years ago
1
Facebook IDs
Java 8
A general regular expression that uses the keywords 'Facebook' and 'id' to collect strings that contain Facebook IDs. Also, added an additional condition to where if there's a long numeric string it will be match a group given that, 'Facebook' is within the string. This is a special use-case and can...
Submitted by
loganmcampbell
-
3 years ago
1
9 Digit SSN String
Java 8
If for whatever reason there isn't a delimiter within your data to for storing your SSNs you should be able to use this regular expression to capture 9 digit strings within data. You might need to add special keywords to filter out false positives.
Submitted by
loganmcampbell
-
3 years ago
1
Specific Year Dates (Regular Expression)
Java 8
Here's a regular expression to handle a specific year in the different forms of dates: YYYY-MM-DD DD-MM-YYYY MM-DD-YYYY ...
Submitted by
loganmcampbell
-
3 years ago
1
Regular expression for capturing dates and date ranges.
Java 8
A proof of concept regex that captures dates and date ranges with a variety of separators. Works with both DMY and MDY, and if one is not needed, it can be easily deleted from the regex. The full variety of months needs to be implemented by the programmer themselves since developing it in regex101...
Submitted by
Matey Krastev
-
2 years ago
1
nginx access regex loki
Golang
nginx access log regex
Submitted by
Lethisa Putri
-
2 years ago
1
IP Address
Java 8
(^([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3}.)([0-9]{2,3})$)
Submitted by
anonymous
-
2 years ago
1
1
Golang
11
Submitted by
anonymous
-
2 years ago
1
phone number middle number parsing
Java 8
middle number parsing regex
Submitted by
anonymous
-
2 years ago
1
AsciiDoc delimited block example
Java 8
https://docs.asciidoctor.org/asciidoc/latest/blocks/delimited/
Submitted by
aisbergde
-
2 years ago
(Last modified 2 years ago)
1
Replace ^ with Math.pow function. Not made to work with braces.
Java 8
Replaces ^ with Math.pow function call. This assumes all braces have been combined first. If you need help with the combination, I got you—try this Python algorithm: def evaluate_braces(expr): """Recursively evaluate expressions within braces""" Check if expression contains braces if '(' in...
Submitted by
Glitchii - https://github.com/Glitchii
-
2 years ago
(Last modified 2 years ago)
1
Email finder
Java 8
Matches with the valid email addresses.
Submitted by
anonymous
-
2 years ago
1
json value extract
Java 8
json value extract
Submitted by
anonymous
-
2 years ago
1
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
-
a year ago
1
Türkiye Araç Plaka Regexi - Türkiye Car Plate Regex
Java 8
Gist link for Java : https://gist.github.com/Gencturk-m/9962ce1e1dcf4dd9307062e34b023183 Aşağıdaki yapıdaki plakaları kabul eder: "01-81 X 9999", "01-81 X 99999"...
Submitted by
Melih Gençtürk - https://github.com/gencturk-m
-
a year ago
1
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
-
a year ago
(Last modified a year ago)
1
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
-
a year ago
1
Home
Golang
Dj dus er geen je een je aan je enige eerst een he we er
Submitted by
Webmaster
-
a year ago
1
...
17
18
19
20
21
Community Library Entry
1
Regular Expression
Java 8
"
(?im)
^
(?<c1>
\"
?
)
\w
+
(?:
[
\W&&
[^
@
]]
?
)
\w
+
\k<c1>
@
(?:
\[
?
(?:
\d
{3}
\.
?
){0,4}
\]
?
|
(?:
[
\w&&
[^
\d
]]
+
[
\.\-
]
?
)*
(?<=
\.
\w
{2,6}
)
)
$
"
g
Open regex in editor
Description
Matches with the valid email addresses.
Submitted by
anonymous
-
2 years ago