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
There are currently no sponsors. Click
here
to read more.
Community Patterns
Search among 17,600 community submitted regex patterns...
0
Egyptian Phone Numbers
ECMAScript (JavaScript)
Validate Egyptian phone numbers ... Read More (Arabic)
Submitted by
Mahmoud Mostafa
-
a year ago
(Last modified a year ago)
0
Egyptian National ID
ECMAScript (JavaScript)
This validates the components of the Egyptian national ID ... See details (Arabic)
Submitted by
Mahmoud Mostafa
-
a year ago
1
string substitution in bash behaving differently from PCRE(PHP<7.3>
PCRE (PHP <7.3)
question about bash not returning expected results, the same result as this saved regex returns here
Submitted by
anonymous
-
a year ago
0
shift_factor
Python
extracting constraint id from composed column header
Submitted by
Dario Romero
-
a year ago
1
match eslint packages other than next.js
ECMAScript (JavaScript)
This could be used to group eslint stuff in renovate config for a next.js project. Since you're intended to keep eslint-plugin-next at the same version as next itself, you would want to group it with next instead. Using negative lookahead we can ignore eslint-config-next (or anything else you may wi...
Submitted by
Mitsunee
-
a year ago
(Last modified a year ago)
0
List of lists of numbers (no leading zeros)
Python
List of lists of numbers (no leading zeros)
Submitted by
anonymous
-
a year ago
0
strip host port
PCRE (PHP <7.3)
removes port number from URL
Submitted by
pc
-
a year ago
0
Regular expression Regix for Iranian mobile phone numbers
PCRE2 (PHP >=7.3)
Regular expression Regix for Iranian mobile phone numbers
Submitted by
anonymous
-
a year ago
0
Regex range date
PCRE2 (PHP >=7.3)
\b((?:19|20)\d{2})-(0[1-9]|1[0-2])-(0[1-9]|12|3[01])\b
Submitted by
Ziuzhang
-
a year ago
0
Password (Numeric, Special Char, Uppercase, Lowercase)
PCRE2 (PHP >=7.3)
Password Regex with minimum contain one Numeric, Special Char, Uppercase, Lowercase
Submitted by
yvnt
-
a year ago
0
Username (Alphanumeric Only)
PCRE2 (PHP >=7.3)
Alphanumeric Only (Uppercase + Lowercase + Numeric) Not support special character.
Submitted by
yvnt
-
a year ago
0
Martch Letras y Parentesis
Java 8
Martch Letras y Parentesis
Submitted by
Daniel Gonzalez
-
a year ago
0
YouTube link parser
PCRE2 (PHP >=7.3)
Validate an URI to YouTube video.
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Windows File With Double Extension
PCRE2 (PHP >=7.3)
This can be used for threat hunting. It will look for valid file names that have a double extension that can be used to trick people. Ex: Invoice.pdf.exe
Submitted by
Todd A Danko
-
a year ago
0
Patent Number part extraction
PCRE2 (PHP >=7.3)
Patent Number part extraction (Country Code + Number + Kind Code)
Submitted by
anonymous
-
a year ago
0
Etiquetas de HTML
PCRE2 (PHP >=7.3)
Ejercicio 3. Diseño de expresión regular asignada y autómata finito Equipo: MAD
Submitted by
anonymous
-
a year ago
0
vscode-f5 xc reserved ports issue #209
ECMAScript (JavaScript)
https://github.com/f5devcentral/vscode-f5/issues/209
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Proxy Matcher
PCRE (PHP <7.3)
Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by
dev.tntd2k2
-
a year ago
0
Session Start/Close
Python
Capturing Start/Close in IRC-logs
Submitted by
Corpset
-
a year ago
0
Replace namespaces in xpath with local-name
.NET 7.0 (C#)
Replace namespaces in xpath with local-name
Submitted by
pvlzh
-
a year ago
1
...
33
34
35
36
37
...
880
Regex de validação de número celular e fixo | JS (ECMAScript)
1
Regular Expression
ECMAScript (JavaScript)
/
^
(?<DDI>
(
\+
|
00
|
\+
00
)?
[
\s
\-\.
]
?
(
\(
?
[
5
]
{2}
\)
?
)?
)?
[
\s
\-\.
]
?
(?<DDD>
\(
?
0
?
(
[
1
-
9
]
{2}
)
\)
?
)
[
\s
\-\.
]
?
(?<Digito>
9
)?
[
\s
\-\.
]
?
(?<Numero>
(?<PrimeiraParte>
[
1
-
9
]
[
0
-
9
]
{3}
)
[
\s
\-\.
]
?
(?<SegundaParte>
[
0
-
9
]
{4}
)
)
\s
?
$
/
gm
Open regex in editor
Description
Regex validação número celular e fixo
Somente números nacionais
Com ou sem DDI 55
(com ou sem + e/ou 00)
DDD obrigatório
(com ou sem parênteses)
Com ou sem Dígito 9
Com ou sem espaços vazios, hífens ou pontos entre os capture groups
Substitui pelos capture groups mantendo somente os números no padrão abaixo
DDI+DDD+DÍGITO+NÚMERO = 552198887777
Submitted by
anonymous
-
2 years ago