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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,040 community submitted regex patterns...
0
Task6.1
.NET 7.0 (C#)
simple mail regex
Submitted by
anonymous
-
2 years ago
0
Task6.2
.NET 7.0 (C#)
Telephone number regex
Submitted by
anonymous
-
2 years ago
0
Remove locale ending (en-XX to en)
PCRE2 (PHP >=7.3)
Remove locale ending (en-XX to en) Note: Use /g to test all locales.
Submitted by
davidgaroro
-
2 years ago
(Last modified 2 years ago)
0
Remove all whitespaces
PCRE2 (PHP >=7.3)
Remove all whitespaces. Note: Use /g to test all strings.
Submitted by
davidgaroro
-
2 years ago
0
post id
PCRE2 (PHP >=7.3)
pulls ids out of id-prefaced slugs
Submitted by
ben
-
2 years ago
0
get-time
PCRE2 (PHP >=7.3)
The get-time regex checks for the time format of a 12-hour clock, as follows: the hour is between 1 and 12, with no leading zero, followed by a colon, then minutes between 00 and 59, then an optional space, and then AM or PM, in upper or lower case
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
搜索第一个括号
PCRE2 (PHP >=7.3)
\(#.*?\)
Submitted by
Michael
-
2 years ago
0
Instagram post, reel, tv Regex for PHP
PCRE2 (PHP >=7.3)
Instagram post, reel, tv Regex for PHP
Submitted by
Vikas Kapadiya
-
2 years ago
0
Match URL (any beginning and domain extension)
PCRE2 (PHP >=7.3)
PS: It catches undesired strings if they have a dot in the middle, for example "test.test", because it's not checking if ".test" is a real domain extension. You can improve the solution by checking all the possible domain extensions: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
Submitted by
Vini Pereira
-
2 years ago
(Last modified 2 years ago)
0
Prime regex
PCRE2 (PHP >=7.3)
All characters have to be the same Matches non-primes
Submitted by
nopeless | u/kattskill
-
2 years ago
0
Strong password
ECMAScript (JavaScript)
The password must contain : Between 8 and 24 chars 1 lowercase 1 uppercase 1 number 1 special char...
Submitted by
valent1618
-
2 years ago
0
Tel
ECMAScript (JavaScript)
Match : '+' at start. ' ' | '.' | '-' between number. Between 7 and 24 numbers. Work with HTML5 pattern.
Submitted by
valent1618
-
2 years ago
0
get-time
PCRE2 (PHP >=7.3)
Suggest a RegEx to checks for the time format of a 12-hour clock, as follows: the hour is between 1 and 12, with no leading zero, followed by a colon, then minutes between 00 and 59, then an optional space, and then AM or PM, in upper or lower case
Submitted by
ali
-
2 years ago
0
audiomack
Python
valid url test for audiomack website
Submitted by
Abdullah Ibn Fulan
-
2 years ago
0
Exact match of a word in a phrase: the phrase must be composed by a single word
PCRE (PHP <7.3)
It will match if it's present only the exact word in a phrase, without any other words in the same sentence
Submitted by
anonymous
-
2 years ago
0
Audio and Video files
Python
Match *audio *and *video *files in python
Submitted by
anonymous
-
2 years ago
0
International names
PCRE2 (PHP >=7.3)
Regex for international names
Submitted by
Pierre Jochem
-
2 years ago
0
Strict password match
ECMAScript (JavaScript)
Matches any password with 8 ASCII characters (from ! to ~), 1 lowercase letter, 1 uppercase letter, 1 number and 1 symbol. For testing multiple passwords, each one has to be in a separate line, if a password is valid, its first character is found.
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
MM/DD/YYYY Date Validator
PCRE2 (PHP >=7.3)
Validates dates in MM/DD/YYYY format
Submitted by
Sergio Rey
-
2 years ago
0
currencies Question
Python
怎么在匹配 30p, 500m时,不会匹配到文章中的年份和百分比数字
Submitted by
anonymous
-
2 years ago
1
...
853
854
855
856
857
...
902
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
[^
<>()[
\]\\
.,;:
\s
@
\"
]
+
(
\.
[^
<>()[
\]\\
.,;:
\s
@
\"
]
+
)*
)
|
(
\"
.
+
\"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\]
)
|
(
(
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
/
Open regex in editor
Description
no description available
Submitted by
anonymous
-
10 years ago