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,100 community submitted regex patterns...
0
trackA_1.mp3
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
No Periods or Spaces except leading "Orion."
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
COPD GOLD 2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Product number
PCRE (PHP <7.3)
With pn given it will return informations depending of the constructor and more variable
Submitted by
anonymous
-
4 years ago
0
HTML Attribute Value
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Huawei_4g_sector_oos_hist
Python
no description available
Submitted by
anonymous
-
4 years ago
0
Function parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
last segment
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Get schema, host, port, path from URL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
First and Last character Match
PCRE (PHP <7.3)
This expression matches first and last character as well as check for the string if length is 1 or not if it is simply check the first character.
Submitted by
anonymous
-
4 years ago
0
First and Last character Match
PCRE (PHP <7.3)
This expression matches first and last character as well as check for the string if length is 1 or not if it is simply check the first character.
Submitted by
anonymous
-
4 years ago
0
First and Last character Match
PCRE (PHP <7.3)
This expression matches first and last character as well as check for the string if length is 1 or not if it is simply check the first character.
Submitted by
anonymous
-
4 years ago
0
Rig Maya
Python
no description available
Submitted by
Mathieu Bouzard
-
4 years ago
(Last modified 3 years ago)
0
pool_member_name
Python
no description available
Submitted by
anonymous
-
4 years ago
0
Find PHP mysqli query with direct string interpolation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Русские маты
PCRE (PHP <7.3)
Матчит русские маты
Submitted by
anonymous
-
4 years ago
(Last modified 3 years ago)
0
Recconhecer Comentarios de Xadrez
PCRE (PHP <7.3)
Expressao que reconhece Comentarios de xadrez em um arquivo pgn.
Submitted by
anonymous
-
4 years ago
0
look for markdown styles in headers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Text between %% %%
PCRE (PHP <7.3)
Text between percentage
Submitted by
anonymous
-
4 years ago
0
Check roundup value for invoice
PCRE (PHP <7.3)
By using this regex, we can check roundup values which is used in billing. Valid results are: 1) -0.15 2) 1.11 3) 9.99 ...
Submitted by
anonymous
-
4 years ago
1
...
209
210
211
212
213
...
705
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