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.
Become a sponsor today!
Community Patterns
Search among 14,080 community submitted regex patterns...
0
把中文和英文以外的文字
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
nlp-python
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Password validation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
VBA Function Dim Statement
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
VBA Function Parameters
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
VBA Dim Statement Module Header
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
VBA Global Const Statement
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
VBA Windows API Declare
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
VBA Windows API Declare
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
article group
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Domain Age Duration
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
VBA Type&Enum
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Code Split Lines
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Test RegEx Text
PCRE (PHP <7.3)
Just some text used to test RegEx with.
Submitted by
anonymous
-
5 years ago
0
ARVFRESLOAD
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Code and /* Block Comment */ Separator
PCRE (PHP <7.3)
Real Shit forgot why I started making this midway thru
Submitted by
anonymous
-
5 years ago
0
MC Stat ETag
PCRE (PHP <7.3)
Minio client stat command etag grep
Submitted by
anonymous
-
5 years ago
0
Don't know what a number is, but here's my IPvFour regex
PCRE (PHP <7.3)
no description available
Submitted by
https://github.com/Dibasic/
-
5 years ago
0
有什么好玩的1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
有什么好玩的2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
...
210
211
212
213
214
...
704
Regex de validação de número celular e fixo | PHP (PCRE2)
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(?#DDI)
(
\+
|
00
|
\+
00
)?
[
\s
\-\.
]
?
(
\(
?
[
5
]
{2}
\)
?
)?
)?
[
\s
\-\.
]
?
(
(?#DDD)
\(
?
0
?
(
[
1
-
9
]
{2}
)
\)
?
)
[
\s
\-\.
]
?
(
(?#Dígito)
9
)?
[
\s
\-\.
]
?
(
(?#Número)
(
(?#Primeira
Parte)
[
1
-
9
]
[
0
-
9
]
{3}
)
[
\s
\-\.
]
?
(
(?#Segunda
Parte)
[
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
Danillo Dantas
-
2 years ago