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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 220 community submitted regex patterns...
0
OS正则表达式
Java 8
zzx
Submitted by
zzx
-
2 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
0
Match any pattern abc.def.***.uvw.xyz hackerRank
Java 8
This regex matches any pattern like in the title. HackerRank challenge modified.
Submitted by
anonymous
-
2 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
-
2 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
-
2 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
-
2 years ago
2
Asciidoc PlantUML Block
Java 8
Regex to select PlantUML Block in Asciidoc documents
Submitted by
anonymous
-
2 years ago
0
Verificar caracter repetido
Java 8
Verificar caracter repetido
Submitted by
anonymous
-
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
匹配中英文括号
Java 8
可以用来替换企业名称中的中英文括号 eg: 阿里巴巴(中国)股份 阿里巴巴(中国)股份
Submitted by
tuan_luo
-
3 years ago
0
ISO 3166-1 alpha-3
Java 8
ISO 3166-1 alpha-3 countries for validation
Submitted by
anonymous
-
3 years ago
0
if else parser part 1
Java 8
A basic if else parser. It automatically captures the if equation and the result. It supports if, elif, and else statements. Note: for elif statements part 2 is required. This is because Regex can't use one group to capture multiple elif statements. Part 2 can be found here
Submitted by
Rubeste
-
3 years ago
0
if else parser part 2
Java 8
This is part 2 of my if else parser. Part 2 is only needed for elif statements. Note: From the elif result from part 1 add a #end to close the statement. I might change it a bit in the future so this isn't needed. ...
Submitted by
Rubeste
-
3 years ago
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
Rick Roll
Java 8
Matches chorus of Never Going to Give You Up
Submitted by
Stephen Battista
-
3 years ago
0
Remove duplicate lines in sorted text
Java 8
See
Submitted by
@atnbueno
-
3 years ago
0
Hitech RTOZONE
Java 8
Checks the registration number's validity
Submitted by
Sid
-
3 years ago
0
java-test1
Java 8
java test string
Submitted by
anonymous
-
3 years ago
0
Match CLI argument to
Java 8
Matches argumetn to as: -t to -t= ...
Submitted by
rperez-torro
-
3 years ago
1
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
-
3 years ago
1
...
5
6
7
8
9
...
11
Multiple emails separated with comma
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
[
a
-
z
]
[
a
-
z0
-
9_.
]
+
@
(
[
a
-
z0
-
9-
]
+
\.
)+
[
a
-
z
]
{2,6}
(
,
\s
{0,1}
){0,1}
)+
$
/
Open regex in editor
Description
Multiple emails separated with comma
Only one space allowed after comma
Avoid blank spaces between commas
Submitted by
CsarEspejel
-
4 months ago
(Last modified 4 months ago)