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 220 community submitted regex patterns...
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 2 months ago)
2023-07-20 07:05
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
-
2 years ago
2021-04-08 18:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sim ou não
Java 8
expressão regular que só aceita s para sim e n para não
Submitted by
José Airton Neto
-
2 years ago
2021-04-10 23:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match segmented paths with '\' and '/' escaped by '\'
Java 8
Match segmented paths with '\' and '/' escaped by '\'
Submitted by
anonymous
-
2 years ago
2021-05-18 14:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
css attribute validation
Java 8
css attribute validation
Submitted by
arnab
-
2 years ago
2021-06-24 18:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
标点
Java 8
匹配大部分标点
Submitted by
anonymous
-
2 years ago
2021-07-04 12:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sfdgvsdgdfg
Java 8
dgfdgdf
Submitted by
anonymous
-
2 years ago
2021-07-07 21:18
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
yyyy/mm/dd
Java 8
^(((\d{3}[1-9]|\d{2}[1-9]\d|\d[1-9]\d{2}|[1-9]\d{3})(\/)(((0[13578]|1[02])(\/)(0[1-9]|[12]\d|3[01]))|((0[469]|11)(\/)(0[1-9]|[12]\d|30))|(02(\/)(0[1-9]|[1]\d|2[0-8]))))|(((\d{2})(0[48]|2468|13579)|((0[48]|2468|3579)00))(\/)02(\/)29))$ Match year/month/day, date format. E.g: 2021/08/25 [match] 2021/...
Submitted by
mayl0421
-
2 years ago
2021-08-25 12:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match Windows filename in any path but only C: D: and F: drives
Java 8
Used for Service Discovery in vRealize Operations. Use case is a service that can be installed on any path, but we only want to discover and monitor services installed on standard production drives (C, D or F). Filename will always be the same.
Submitted by
Various
-
2 years ago
2021-10-02 18:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
11
Java 8
11
Submitted by
11
-
2 years ago
2021-10-15 07:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IPv4 + TCP-Port
Java 8
This regex matches a IPv4 with a TCP Port (1-65535) Example: 192.168.0.69:1337 will match and have the groups: Group 1: 192.168.0.69 Group 2: 1337
Submitted by
SIMULATAN
-
2 years ago
2022-01-12 07:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Rick Roll
Java 8
Matches chorus of Never Going to Give You Up
Submitted by
Stephen Battista
-
2 years ago
2022-02-01 19:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
2 years ago
2022-02-06 06:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
2 years ago
2022-02-10 06:46
1
2
3
4
...
11
Türkiye Araç Plaka Regexi - Türkiye Car Plate Regex
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Java 8
"
^
(
0
[
1
-
9
]
|
[
1
-
7
]
[
0
-
9
]
|
8
[
0
-
1
]
)
(
(
[
A
-
PR
-
VYZ
]
{1}
)
(?!
0
{4,5}
$
)
\d
{4,5}
|
(
[
A
-
PR
-
VYZ
]
{2}
)
(?!
0
{3,4}
$
)
\d
{3,4}
|
(
[
A
-
PR
-
VYZ
]
{3}
)
(?!
0
{2,3}
$
)
\d
{2,3}
)
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Melih Gençtürk - https://github.com/gencturk-m
-
5 months ago
2023-04-24 20:44