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 9,440 community submitted regex patterns...
2
**japanese text** to bold <b>japanese text</b>
PCRE (PHP <7.3)
japanese text to bold japanese text 食べるんだ 食べるんだ
Submitted by
kurokuroshii
-
22 days ago
(Last modified 22 days ago)
1
RFC3339 Validator
PCRE (PHP <7.3)
RFC3339 Validator
Submitted by
anonymous
-
a month ago
(Last modified a month ago)
1
Automod - Discord scam invitations
PCRE (PHP <7.3)
Matches variations of messages commonly used to send Discord scams/hacks. Instructions are written for YAGPDB
Submitted by
paiuxfluens
-
3 months ago
1
YouTube Video ID
Java 8
Gets the ID of a YouTube Video from any link to it.
Submitted by
cheeseburger
-
4 months ago
1
indented lines with continuation
PCRE (PHP <7.3)
Example taken from SO,
Submitted by
anonymous
-
4 months ago
1
Renamer Log file to CSV
PCRE (PHP <7.3)
Catches our log files renamed file names and adds them to CSV file
Submitted by
anonymous
-
5 months ago
1
Parse Address - Prefecture
Java 8
get prefecture from Japanese address
Submitted by
Gary Ascuy
-
6 months ago
1
AWS EventBridge Scheduling Expressions
Java 8
This validates AWS EventBridge scheduling expressions using the rate() and cron() formats. It may not catch all invalid expressions, but it should properly validate all valid expressions, as demonstrated in the unit tests. Please let me know if I missed any valid expressions. Originally attempted ...
Submitted by
Evan S Kaufman <evan@evanskaufman.com>
-
6 months ago
(Last modified 4 months ago)
1
IANA Media Type
Java 8
Parses an IANA Media Type value. Doesn't seem to capture repeating parameters, which is a bit of an edge case but valid I think - any suggestions on how to fix would be appreciated.
Submitted by
scottbdr
-
7 months ago
1
Detect Multiple File Extensions
PCRE (PHP <7.3)
I use this to find files with two or more extensions (i.e. file.txt.txt). This will work with files with 3 or 4 character or numeric (or both) file extensions (i.e. pdf, xlsx).
Submitted by
Curve
-
7 months ago
(Last modified 7 months ago)
1
Chinese Digits
PCRE (PHP <7.3)
Match Chinese Digits less than 1×10^16, such as “一千两百三十四万”、“八萬点七六五”、“玖仟玖佰玖拾玖万玖仟玖佰玖拾玖亿玖仟玖佰玖拾玖万玖仟玖佰玖拾玖点玖玖玖玖玖玖玖玖玖玖玖玖玖玖玖玖”,Upper and lower case Chinese can be mixed, but Chinese numbers and English numbers cannot be mixed. Illegal numbers will not be matched. For example: “两十六” will not be matched, as t...
Submitted by
anonymous
-
8 months ago
(Last modified 7 months ago)
1
NPC名称匹配
PCRE (PHP <7.3)
^\h{4}段首4个横向空格 +不包含左括号、换行符号的其他字符,1~无限循环 \((.*)\)$捕获处于()之中的任意字符内容,右括号在段尾
Submitted by
vicrly
-
9 months ago
1
文件名称验证
Java 8
操作系统文件名称验证,参考了Windows,Linux,Mac
Submitted by
腾龙问天
-
9 months ago
1
verifyIPV6
Java 8
verificare indirizzo IPV6 (regole base)
Submitted by
Luigi Piccinni
-
10 months ago
2
Check Email Validity
Java 8
Regular expression to check the email syntax validity. Certainly requires improvement, but it's a good basis to work from. Work with Java and JavaScript.
Submitted by
Alain TOMASIAN <alain.tomasian@kaptus.fr>
-
10 months ago
(Last modified 10 months ago)
1
Gradient for minecraft
Java 8
This is for my plugin project
Submitted by
Trần Thế Anh
-
10 months ago
1
77870294
PCRE (PHP <7.3)
618001/041881 564094
Submitted by
960203095053
-
10 months ago
(Last modified 10 months ago)
1
Youtube Video ID
Java 8
Extract youtube video ID
Submitted by
anonymous
-
a year ago
(Last modified 10 months ago)
1
Extract text strings from repeating text fields followed by a suffix
Java 8
This regex expression is useful for extracting only the text string from a value in a column that may contain values from individual rows with repeat strings tagged with a suffix. For example - Row 1: "Sales (#1)", Row 2: "Sales Match (#2)". From the shared examples, this regex will extract the text...
Submitted by
nilotpalc
-
a year ago
1
groupping math every 2 comma separator
PCRE (PHP <7.3)
i have paste \n after every 2-th comma using sed sed 's/\(\(*,\)\{2\}\)/\1\n/g'
Submitted by
sanekmihailow
-
a year ago
1
2
3
...
472
URL regexp
40
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
-_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
/
ig
Open regex in editor
Description
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
12 years ago