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,000 community submitted regex patterns...
1
Unix ANSI escape codes
PCRE (PHP <7.3)
Unix ANSI escape codes Hi , in my Terminal project in want a method to find (Unix ANSI escape codes) and run its command. For More information : https://en.wikipedia.org/wiki/ANSI_escape_code...
Submitted by
Shahin Pendar , shahinpendar@gmail.com
-
7 years ago
1
Check list of integers numbers separated by comma
PCRE (PHP <7.3)
Check list of integers numbers separated by comma Ex: "1, 2, 4, 6" >> OK "99" >> OK "a, b, c" >> WRONG...
Submitted by
anonymous
-
7 years ago
1
French Phone Number Validation
PCRE (PHP <7.3)
Accept several kind of format, more or less usual. And refuse incorrect formats. Prefix: 0033 / +33 / (0) / 0 Number: collapsed / group by 2 / group by 3 Separator: space / dot / dash
Submitted by
RonanKER
-
7 years ago
1
Validate and decompose email address (English alphabet compliant)
PCRE (PHP <7.3)
If you understand the regexp, you can adjust it to your need. restrict special characters to .%_'- (localpart) limit length of each part and the whole to reasonable size supports 'XN' tld If you need help, read http://www.regular-expressions.info/email.html See also https://www.debuggex.com/r/9cdaaw...
Submitted by
RonanKER
-
7 years ago
1
Capture the last space in a line of text with Negative Lookback
PCRE (PHP <7.3)
Looks for the last single space in a line of text.
Submitted by
anonymous
-
7 years ago
1
Acts
PCRE (PHP <7.3)
Extract Act names from statements
Submitted by
anonymous
-
7 years ago
1
Euro prices with steps of 5000 (e.g 5.000, 10.000 - 255.000)
PCRE (PHP <7.3)
To validate a price of 5.000 and steps of 5.000 thereafter. (e.g 5.000, 10.000, 15.000 etc) including a euro sign. If anyone has any improvements let me know, this is what i just came up with to solve a problem i have on WordPress Contact Form 7.
Submitted by
anonymous
-
7 years ago
1
Ansible Rendered Configs from STDOUT
PCRE (PHP <7.3)
Ansible Rendered Configs from STDOUT
Submitted by
gmaddock
-
7 years ago
1
email address
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
RFC 3986 URI Validation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
SVC Branch Naming
PCRE (PHP <7.3)
Branch naming regex that's suitable for Gitlab issues. GIT SVN MERCURIAL MG
Submitted by
anonymous
-
7 years ago
1
Simple expression to create information groups
PCRE (PHP <7.3)
0 = not an authorized dealership for the respective brand 1 = authorized dealership for the respective brand
Submitted by
anonymous
-
5 years ago
1
No trailing spaces or extra spaces max char 200 min 2 and hyphen and & only allowed
PCRE (PHP <7.3)
No trailing spaces or extra spaces max char 200 min 2 and hyphen and & only allowed
Submitted by
Natalia zolotareva
-
3 years ago
1
NEW YAHOO
PCRE (PHP <7.3)
This pattern will match everything directly below your yahoo REPLACE section and non of the good cases above: ^yahoo\.com?(?:(?!\.[a-z]{2}).)*(?:.com?)?$ IE you do not want to include yahoo.fr or yahoo.com.fr or yahoo.co.uk
Submitted by
anonymous
-
7 years ago
1
Matches all subdomains excluding www
ECMAScript (JavaScript)
Matches all subdomains (specifically in group 2) excluding www
Submitted by
AurielleP
-
7 years ago
1
Replace text between double curly braces
ECMAScript (JavaScript)
no description available
Submitted by
TonyM (g33ktony)
-
7 years ago
1
Require string of length Ignoring HTML
PCRE (PHP <7.3)
checks for a continuous string of characters (in this case 7) , but ignores HTML tags we use it in a required feild validator that has auto generated formatting elements
Submitted by
Doom87er
-
7 years ago
1
color-price-count
PCRE (PHP <7.3)
no description available
Submitted by
By me
-
7 years ago
1
Match text inside of single/double quotes, mysql identifier tokens(`)(ignore escaped nested quotes)
PCRE (PHP <7.3)
Verbose, somewhat cryptic and very efficient pattern to match all text inside of quotes and MySQL identifier tokens.
Submitted by
Phillip Weber
-
7 years ago
1
Telephone numbers from Ireland
PCRE (PHP <7.3)
Validate phone numbers from Ireland
Submitted by
anonymous
-
7 years ago
1
...
230
231
232
233
234
...
900
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
^
(?:
(?:
\+
|
00
)
33
[
\s
.-
]
{0,3}
(?:
\(
0
\)
[
\s
.-
]
{0,3}
)?
|
0
)
[
1
-
9
]
(?:
(?:
[
\s
.-
]
?
\d
{2}
){4}
|
\d
{2}
(?:
[
\s
.-
]
?
\d
{3}
){2}
)
$
/
gm
Open regex in editor
Description
Accept several kind of format, more or less usual. And refuse incorrect formats.
Prefix: 0033 / +33 / (0) / 0
Number: collapsed / group by 2 / group by 3
Separator: space / dot / dash
Submitted by
RonanKER
-
7 years ago