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
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 11,600 community submitted regex patterns...
1
Search needle by position
PCRE2 (PHP >=7.3)
Searches for needle starting from an exact position
Submitted by
Volgers
-
3 years ago
1
https
PCRE2 (PHP >=7.3)
regex for url
Submitted by
anonymous
-
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
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
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
Internation Phone
PCRE2 (PHP >=7.3)
phone number with country code + or 00
Submitted by
anonymous
-
3 years ago
1
Name
PCRE2 (PHP >=7.3)
English or Arabic Letters and Spaces
Submitted by
anonymous
-
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
Obsidian external embedded link
PCRE2 (PHP >=7.3)
Obsidian external embedded link
Submitted by
arezvov
-
3 years ago
1
pack_size
PCRE2 (PHP >=7.3)
get pack_size from a string
Submitted by
anonymous
-
3 years ago
1
us phone number validation
PCRE2 (PHP >=7.3)
us phone number validation
Submitted by
anonymous
-
3 years ago
1
Email Verification
PCRE2 (PHP >=7.3)
PHP REGEX to verify an email.l
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
Replace variable value with variable
PCRE2 (PHP >=7.3)
Replace variable value with variable
Submitted by
anonymous
-
3 years ago
1
Jira
PCRE2 (PHP >=7.3)
Jira
Submitted by
anonymous
-
3 years ago
1
IP Address Validation Express
PCRE (PHP <7.3)
This is an accurate IP Address validation express that matches 1.1.1.1 to 255.255.255.255. Enjoy the code and pass it on to someone else in need. _"With practice you have no choice but to improve." "A logical mind has no limits to understanding."_
Submitted by
anonymous
-
3 years ago
1
IPV4 Address Identificate
PCRE2 (PHP >=7.3)
Regex to identificate a IPV4 Address
Submitted by
Pablo Deyvid
-
3 years ago
1
Regex
PCRE2 (PHP >=7.3)
Match an element from a list
Submitted by
anonymous
-
3 years ago
1
Phone Number E.164
PCRE2 (PHP >=7.3)
Starts with + from 8 digits until 15
Submitted by
Sear Lopez
-
3 years ago
1
US Date Format to ISO using regex substitution
PCRE2 (PHP >=7.3)
Convert a US Date format to ISO
Submitted by
Joe Kruger
-
3 years ago
1
...
516
517
518
519
520
...
580
IPv4
2
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
[
0
-
1
]
?
\d
{1,2}
)
|
(
2
[
0
-
5
]
{2}
)
)
(
\.
(
(
[
0
-
1
]
?
\d
{1,2}
)
|
(
2
[
0
-
5
]
{2}
)
)
){3}
$
/
Open regex in editor
Description
no description available
Submitted by
Jorge C.
-
9 years ago