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
teszt
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
images_extension
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Catch full string up until last backslash
PCRE (PHP <7.3)
Anything before the final \ will be detected. In the example below, the files will be stripped from the file-path as the regex will detect anything in the filepath up until the final backslash. setup In the root of your project you save the script below in index.php and should create folder named a...
Submitted by
anonymous
-
5 years ago
0
<a> tag search
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Errores DRIVE
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Nginx subdomain wild card
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Semantic Versioning 2.0.0
PCRE (PHP <7.3)
According to the spec from https://semver.org/spec/v2.0.0.html
Submitted by
anonymous
-
5 years ago
0
Patent Classfication
Python
ipc cpc fi
Submitted by
anonymous
-
5 years ago
0
Patent Classfication
Python
ipc cpc fi
Submitted by
anonymous
-
5 years ago
0
Patent Classfication
Python
ipc cpc fi
Submitted by
anonymous
-
5 years ago
0
Android Logcat - Filter out lines containing word(s)
PCRE (PHP <7.3)
Matches only lines that do not contain any of the provided strings. Useful to suppress noisy/uninteresting stuff from logcat. Looking at you ViewRootImpl
Submitted by
anonymous
-
5 years ago
0
Class
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
Delete emptiness
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
chrome filter
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
0
full website url find
PCRE (PHP <7.3)
searches for full, valid website urls including large obnoxious search result url links
Submitted by
anonymous
-
5 years ago
0
Split long paragraph to segments within specified length
PCRE (PHP <7.3)
Try to split at the longest point whereas sentences ended.
Submitted by
anonymous
-
5 years ago
0
Version number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
(Last modified 3 years ago)
0
留学行业专属词汇提取
PCRE (PHP <7.3)
解决NLP分词无法识别留学行业专属词汇的问题
Submitted by
anonymous
-
5 years ago
0
MAINTBOOK
Python
no description available
Submitted by
anonymous
-
5 years ago
0
Remove duplicate words from string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
5 years ago
1
...
209
210
211
212
213
...
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