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...
1
Password regular expression
PCRE2 (PHP >=7.3)
Password should contain at least 8 symbols, one lower case, one upper case and one number. https://owasp.org/www-community/password-special-characters
Submitted by
Tahiaji
-
2 years ago
1
Chinese Phone Number
PCRE2 (PHP >=7.3)
匹配中国🇨🇳大陆手机号码
Submitted by
Akko
-
2 years ago
1
Docker image tag with named groups
ECMAScript (JavaScript)
Named groups, port in registry, sha256
Submitted by
petersamokhin with help from https://stackoverflow.com/questions/39671641
-
2 years ago
1
Select Markdown Text and content
ECMAScript (JavaScript)
This expression selects any square brackets and the content inside it. Exemple: [DataTransfer] []...
Submitted by
innnerception
-
2 years ago
1
Group first letter, Group Remaining letters, Group White space
PCRE (PHP <7.3)
first groups all white space $1 second groups all first letter of every word except capitals third groups remaining letters
Submitted by
slimelord
-
2 years ago
1
Function for LScript
ECMAScript (JavaScript)
RegEx for finding function in LScript programming language
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
Function creation in LScript
ECMAScript (JavaScript)
RegEx for finding creation of a function in LScript programming language
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
Function argument in LScript
ECMAScript (JavaScript)
RegEx for finding each argument when creating a function in LScript programming language
Submitted by
anonymous
-
2 years ago
1
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
Ahmed Ibrahim
-
2 years ago
1
Filtering Log Files with Regular Expressions
PCRE2 (PHP >=7.3)
We're using the same syslog, and we want to display the date, time, and process id that's inside the square brackets. We can read each line of the syslog and pass the contents to the show_time_of_pid function. Fill in the gaps to extract the date, time, and process id from the passed line, and retur...
Submitted by
anonymous
-
2 years ago
1
URL Parts Extractor
ECMAScript (JavaScript)
Extracts parts of an URL into regex groups: ((?:(?:http|ftp|ws)s?|sftp):\/\/?)?(group 1): extracts the protocol (+\.+|localhost)(group 2): extracts the hostname (:\d+)?(group 3): extracts the port number ((?:\/\w+)\/)?([\w\-.]++)?(groups 4 & 5)*: extracts the path part (+)?(group 6): extracts the qu...
Submitted by
Elie Grenon (elie-g)
-
2 years ago
1
Timestamps
ECMAScript (JavaScript)
Recognizes timestamps with the technical timestamp format.
Submitted by
Alejandro, Andreu
-
2 years ago
(Last modified 2 years ago)
1
Matching CSS Properties
ECMAScript (JavaScript)
CSS Properties
Submitted by
Luidenka
-
2 years ago
1
Email with special characters
ECMAScript (JavaScript)
Built using this specification
Submitted by
studium-inexorabile
-
2 years ago
1
Word boundary with umlauts
ECMAScript (JavaScript)
Word boundary \b does not support umlauts.
Submitted by
StephanGeorg
-
2 years ago
1
Uzbekistan passport regex
PCRE2 (PHP >=7.3)
Uzbekistan passport regex
Submitted by
Elbek Khamdullaev (elbek.me)
-
2 years ago
1
Only if before
PCRE (PHP <7.3)
Only if needle is before target
Submitted by
anonymous
-
2 years ago
1
Decimal digit with some text pattern at the end.
PCRE2 (PHP >=7.3)
[0-9]+\.?[0-9,]* ?(?:UI|IU|MCG|G|I.U|I.U.|MG|ML|GM)(?:\/?[0-9]+\.?[0-9]* ?(?:UI|IU|MCG|G|I.U|I.U.|MG|ML|GM))?
Submitted by
anonymous
-
2 years ago
1
Mobile Number (with country code)
PCRE2 (PHP >=7.3)
Basic Regex to validate mobile numbers, with country code
Submitted by
Ashutosh Mishra
-
2 years ago
1
uzbekistan phone number
PCRE2 (PHP >=7.3)
uzbekistan phone number
Submitted by
Elbek Khamdullaev
-
2 years ago
1
...
806
807
808
809
810
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
ldap
(
s
)?
:
\/\/
)
(
(
(
\d
{1,3}
.
){3}
\d
{1,3}
(
:
\d
+
)?
)
|
(
\w
|
\d
|)+
|
(
(
\[
(
[
a
-
f0
-
9
]
{1,4}
:
{1,2}
){1,4}
(
[
a
-
f0
-
9
]
{1,4}
)
\]
)
(
:
\d
+
)?
)
)
.\w
+
$
/
gm
Open regex in editor
Description
ldap, ldaps, ipv4, ipv6 & dns (bare bones)
Submitted by
anonymous
-
3 years ago