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
Add rgb for colour variables
ECMAScript (JavaScript)
Add rgb for colour variables
Submitted by
anonymous
-
3 years ago
1
Email
PCRE2 (PHP >=7.3)
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,3}$
Submitted by
Mykola Buhaiov
-
3 years ago
1
get homepage url from full url
Python
get homepage url from full url
Submitted by
Suraj Shrestha
-
3 years ago
1
Test expression
PCRE2 (PHP >=7.3)
To find at most 3 a in string
Submitted by
anonymous
-
3 years ago
2
JavaScript semicolon adder
ECMAScript (JavaScript)
This is a regex to use on JavaScript code that is missing semicolons
Submitted by
samunemeth
-
3 years ago
1
RegEx Workshop
ECMAScript (JavaScript)
Phone Number RegEx
Submitted by
Anthony Cooper
-
3 years ago
1
Email Verification
PCRE2 (PHP >=7.3)
PHP REGEX to verify an email.l
Submitted by
anonymous
-
3 years ago
0
Smartling custom placeholders and liquid strategy
Java 8
Suggested Smartling custom placeholder regex to support liquid syntax as documented for Braze. Because default value cannot be extracted easily recommend rewrting the liquite to avoid using default filters.
Submitted by
Eric Negron
-
3 years ago
1
Youtube video URL or empty
ECMAScript (JavaScript)
Matches correct youtube video urls and empty strings.
Submitted by
xeon927 on stackoverflow
-
3 years ago
1
us phone number validation
PCRE2 (PHP >=7.3)
us phone number validation
Submitted by
anonymous
-
3 years ago
0
Password
PCRE2 (PHP >=7.3)
For password validation
Submitted by
anonymous
-
3 years ago
1
pack_size
PCRE2 (PHP >=7.3)
get pack_size from a string
Submitted by
anonymous
-
3 years ago
1
Obsidian external embedded link
PCRE2 (PHP >=7.3)
Obsidian external embedded link
Submitted by
arezvov
-
3 years ago
1
Validate a 10-digit US Phone Number
PCRE2 (PHP >=7.3)
Validate a 10-digit US Phone Number
Submitted by
JB
-
3 years ago
1
Name
PCRE2 (PHP >=7.3)
English or Arabic Letters and Spaces
Submitted by
anonymous
-
3 years ago
1
Internation Phone
PCRE2 (PHP >=7.3)
phone number with country code + or 00
Submitted by
anonymous
-
3 years ago
1
01-sitepoint-com-learn-regex-olmatro
PCRE2 (PHP >=7.3)
01-sitepoint-com-learn-regex-olmatro https://www.sitepoint.com/learn-regex/ SOM: we’ll look at the simplest form of regular expression we can build. Input the following:...
Submitted by
https://www.sitepoint.com/learn-regex/
-
3 years ago
1
Remove single, but not repeating newlines, except immediately after a period. (xiTWA2/1)
PCRE (PHP <7.3)
Intended as a first pass on already word wrapped text, to remove wrap newlines while preserving likely intentional ones. Not especially robust.
Submitted by
Tristan
-
3 years ago
1
Word wrap text
PCRE (PHP <7.3)
(Directly inspired by https://macromates.com/blog/2006/wrapping-text-with-regular-expressions/ ) This version only splits between words, so lines may wrap earlier than the given maximum. Passes existing linefeed through "as‐is", so probably not useful for reflowing already wrapped text
Submitted by
Tristan
-
3 years ago
0
Replace line breaks and lines like "James 5:00 PM" to clean up messages copied from slack (iPFAnO/2)
PCRE2 (PHP >=7.3)
Before I recommend XMind 8 and not the newer XMind Zen (I have not tried XMind 2021). It is available here: xmind.net/download/xmind8 (edited) :heavy_plus_sign: 1...
Submitted by
Maksim Zinovev
-
3 years ago
1
...
195
196
197
198
199
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(
^
[
putdn
]
)
(
_
[
a
-
zA
-
Z
]
+
?
[
a
-
zA
-
Z0
-
9
]
*
?
)
(
\.
[
a
-
zA
-
Z0
-
9
]
+
?
)?
(
.
Delta
|
.
Snapshot
|
.
Event
)
(
D
|
W
|
M
|
BM
|
Q
|
Y
)?
(
_v
\d
+
.\d
+
)
(
_
\d
{4,8}
)?
(
_D
\d
+
)
(
_
[
a
-
zA
-
Z
]
+
[
a
-
zA
-
Z0
-
9
]
*
)
/
gm
Open regex in editor
Description
no description available
Submitted by
anonymous
-
6 years ago