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 5,700 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match but no replace
PCRE2 (PHP >=7.3)
match an group in re.sub pattern but no replace it !
Submitted by
anonymous
-
a year ago
2022-05-12 16:17
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
US telephone number practice
ECMAScript (JavaScript)
Attempting to match valid US phone number formates
Submitted by
anonymous
-
a year ago
2022-05-12 01:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Strong Password (three of the four type)
ECMAScript (JavaScript)
must use at least three of the four available character types: lowercase letters, uppercase letters, numbers, and symbols.
Submitted by
anonymous
-
a year ago
2022-05-11 01:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match ipv4|匹配ipv4
PCRE2 (PHP >=7.3)
192.168.254.1 match 0.0.0.0 match 01.01.01.01 does not match 255.255.255.255 match 255.0.0.0 match 0.0.0.256 does not match
Submitted by
nihuge
-
a year ago
2022-05-11 01:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
belcorp
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
a year ago
2022-05-10 22:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
hash and slash
ECMAScript (JavaScript)
replace url that has a hash or slash with slash
Submitted by
anonymous
-
a year ago
2022-05-10 18:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
command df -T on linux
PCRE2 (PHP >=7.3)
command df -T on linux udev devtmpfs 65928068 0 65928068 0% /dev tmpfs tmpfs 13190576 304608 12885968 3% /run /dev/mapper/pve-root ext4 98559220 50337808 43171864 54% / tmpfs tmpfs 65952876 46800 65906076 1% /dev/shm...
Submitted by
Saulo Costa
-
a year ago
2022-05-10 18:47
(Last modified a year ago)
2022-05-10 18:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Language Values not escaped Double Quotes
PCRE2 (PHP >=7.3)
Regex that identifies unescaped double quotes in strings
Submitted by
Marco
-
a year ago
2022-05-10 16:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
C/F temp unit
PCRE2 (PHP >=7.3)
me
Submitted by
anonymous
-
a year ago
2022-05-10 10:11
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Remove HTML tags from a string using JavaScript and RegEx
ECMAScript (JavaScript)
Remove HTML tags from a string using JavaScript and RegEx
Submitted by
Megralo
-
a year ago
2022-05-10 09:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
10digit mobile number with no spaces and special characters
PCRE2 (PHP >=7.3)
Match a single character present in the list below [6-9] 6-9 matches a single character in the range between 6 (index 54) and 9 (index 57) (case sensitive) Match a single character present in the list below [0-9] {9} matches the previous token exactly 9 times 0-9 matches a single character in the ra...
Submitted by
anonymous
-
a year ago
2022-05-10 07:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
i18next Resource key
PCRE2 (PHP >=7.3)
This regex matches i18next library resource keys
Submitted by
anonymous
-
a year ago
2022-05-10 04:38
(Last modified a year ago)
2022-05-10 04:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
user name between 2 and 30 character
ECMAScript (JavaScript)
regex for user name with criteria: Minimum 2 character Maximum 30 character Character must be alphanumeric, except first character is alphabetical Character "_" and "." is allowed once between first and last character
Submitted by
aicone.id
-
a year ago
2022-05-09 11:06
(Last modified 2 months ago)
2023-07-21 10:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Postfix
PCRE2 (PHP >=7.3)
Add DR to end of line
Submitted by
anonymous
-
a year ago
2022-05-09 07:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
extract query and path params - incomplete
PCRE2 (PHP >=7.3)
Working on a regex to extract path and query params
Submitted by
anonymous
-
a year ago
2022-05-06 17:21
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Something...
Java 8
Look for all entries of a country on a list that can have repeated values
Submitted by
anonymous
-
a year ago
2022-05-06 10:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
case insensitive uuidV4
PCRE2 (PHP >=7.3)
detect uuid V4 in string case insensitive. matches: 1d95e013-3c09-4883-88f1-4337ba0b8ddc AND 1D95E013-3C09-4883-88F1-4337BA0B8DDC
Submitted by
ywk
-
a year ago
2022-05-06 08:00
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
File Size Parsing Pattern
ECMAScript (JavaScript)
Purpose This pattern is used to parse human readable text strings regarding file sizes. The pattern names four capture groups in the string for the following purposes: ...
Submitted by
Vincent Engler
-
a year ago
2022-05-05 17:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email regex
ECMAScript (JavaScript)
email regex with subdomain
Submitted by
anonymous
-
a year ago
2022-05-05 06:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Imperva audit log regex
PCRE2 (PHP >=7.3)
Contains regex to parse the CockroachDB SQL audit log file
Submitted by
Lesley Miller
-
a year ago
2022-05-05 04:05
1
...
77
78
79
80
81
82
83
...
285
Matching build file names
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
Java 8
"
^
(?<type>
(?:
ci-
|
cloud-
)?
[^
-
]
+
)
[
_-
]
(?<version>
\d
+
\.
\d
+
\.
\d
+
)
(?<alpha>
[
-+
]
alpha
)?
(?:
-
(?<date>
\d
{8}
)
)?
[
-+
]
(?:
(?<build>
\d
+
)
.
(?<builddate>
\d
{8}
)
)?
(?:
[
.-
]
?
(?<sha>
[
A
-
Fa
-
f0
-
9
]
+
(?:
[
.-
]
\d
+
)?
)
)?
(?:
\.
(?<arch>
.
+
)
)?
\.
(?<fmt>
.
{3}
)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
Sean Furrh
-
2 years ago
2022-02-16 22:31