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 17,260 community submitted regex patterns...
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
IPv4 Address Match
ECMAScript (JavaScript)
Matches IP addresses
Submitted by
jimbrig
-
3 months ago
2023-06-22 21:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Trim part of filename to limit length
PCRE2 (PHP >=7.3)
Truncate the middle block in the filename if it exceeds the maximum length and leave constant blocks at the beginning and end
Submitted by
Andrey Smirnov
-
3 months ago
2023-06-22 09:23
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
rustyms: pro forma single modification
Rust
The regex to match a single pro forma modification with all its intricacies.
Submitted by
Douwe Schulte
-
3 months ago
2023-06-21 21:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Busca parametros função
PCRE2 (PHP >=7.3)
Busca os parametros de uma função
Submitted by
anonymous
-
3 months ago
2023-06-21 16:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
best2bee topic standard
PCRE2 (PHP >=7.3)
Submitted by
anonymous
-
3 months ago
2023-06-21 13:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
routestate
PCRE2 (PHP >=7.3)
pathfinder routestate logs are unreadable
Submitted by
anonymous
-
3 months ago
2023-06-21 13:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
JavaScript kebab-case
ECMAScript (JavaScript)
including digits and double dashes
Submitted by
anonymous
-
3 months ago
2023-06-21 03:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
JavaScript camelCase
ECMAScript (JavaScript)
including digits and sequential uppercase letters
Submitted by
anonymous
-
3 months ago
2023-06-21 03:29
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
RFC-3339
PCRE2 (PHP >=7.3)
A regex to validate RFC-3339 timestamps
Submitted by
anonymous
-
3 months ago
2023-06-20 20:55
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
檢查密碼是否符合要求
PCRE2 (PHP >=7.3)
長度在12到30個字符之間; 至少包含一個小寫字母; 至少包含一個大寫字母; 至少包含一個數字; 至少包含一個特殊符號(如!@#$%^&*()_+{}|:"?[];',./`~-)。
Submitted by
SCL
-
3 months ago
2023-06-20 08:20
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Signals
PCRE2 (PHP >=7.3)
Replace Signal
Submitted by
RedFox Regex
-
3 months ago
2023-06-20 04:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Emails regex
PCRE2 (PHP >=7.3)
This regex will validate pretty much every mail that could exist. It allows aliases and tags in the mail, therefore the mail can contain one or more dots and/or "+" signs (Exemple: exemple.test.alias+tag+tag2). It also allows Internationalized Domain Names (IDNs) (Exemple: @café.com), subdomains (Ex...
Submitted by
Skyle
-
3 months ago
2023-06-20 02:25
(Last modified 3 months ago)
2023-06-20 02:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Cover dates from 2009 and older in French format and English
Java 8
Covering Dates starting from year 2009 and older in French and English Some of the valid Dates format April 2nd 2008 April 2 2008 April 02 2008...
Submitted by
Francois-Alexandre Valade-Casaubon
-
3 months ago
2023-06-19 17:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract Dive Properties from Dive Code
PCRE2 (PHP >=7.3)
Extracts the following properties from a properly formatted dive code as specified by the World Aquatics organisation.
Submitted by
Hessel Bierma
-
3 months ago
2023-06-19 16:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
check simple code
PCRE2 (PHP >=7.3)
Check simple codes between 1 and 5 numbers: 281, 81992, 18, 829a7, 8299192
Submitted by
Stormyz
-
3 months ago
2023-06-19 06:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
all email types
PCRE2 (PHP >=7.3)
work@ing.yes
Submitted by
Stormyz
-
3 months ago
2023-06-19 06:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bangladeshi Phone Number Matching Regex
PCRE2 (PHP >=7.3)
Bangladeshi Any Phone Number Validated preg_match() in php function
Submitted by
anonymous
-
3 months ago
2023-06-18 11:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parsing a Log File Entry
PCRE2 (PHP >=7.3)
This regular expression matches the start of the string at the position where we have one or more alphanumeric characters followed by a space. Afterwards, we have a digit (one or more). Later, we have one or more spaces followed by a time format followed by a space and alphanumeric characters. The i...
Submitted by
Muhammad Afroz Khan Ghauri
-
3 months ago
2023-06-17 10:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Clearlinux Repository file pattern
PCRE2 (PHP >=7.3)
not production ready
Submitted by
anonymous
-
3 months ago
2023-06-17 05:43
(Last modified 3 months ago)
2023-06-17 15:06
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Email with (TLD match)
ECMAScript (JavaScript)
Match an email address and the TLD (.com, .net, .org etc) String: test@test.net Matches: test@test.net|.net
Submitted by
Frosty
-
3 months ago
2023-06-16 19:08
(Last modified 3 months ago)
2023-06-16 19:09
1
...
7
8
9
10
11
12
13
...
863
Another regex test
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
(?:
-
|
<@!
?
204255221017214977>
)
warn
\s
(
<@!
?
\d
{17,19}
>
|
\d
{17,19}
)
(?:
.
+
|
\z
)
`
igm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
2 years ago
2021-11-01 19:48