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 4,860 community submitted regex patterns...
1
Sri Lankan Mobile Number Validation
PCRE2 (PHP >=7.3)
See https://en.wikipedia.org/wiki/Telephone_numbers_in_Sri_Lanka
Submitted by
Isuru Ranawaka
-
2 years ago
1
Add commas between numbers
PCRE2 (PHP >=7.3)
This regex separates numbers with commas taking 0 into account.
Submitted by
anonymous
-
2 years ago
1
Regex de validação de número celular e fixo | PHP (PCRE2)
PCRE2 (PHP >=7.3)
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...
Submitted by
Danillo Dantas
-
2 years ago
1
extract url from html markdown
PCRE2 (PHP >=7.3)
222
Submitted by
seocringe
-
2 years ago
1
telephone_founder
Python
with obfuscation
Submitted by
anonymous
-
2 years ago
1
Markdown link
.NET 7.0 (C#)
Regex for parsing markdown link. Named group "text", "url" and "alt.
Submitted by
anonymous
-
2 years ago
1
Sri Lankan National Identity Card and Sri Lanka Identity Number validation
PCRE2 (PHP >=7.3)
Sri Lankans have two types of identifiation numbers. National Identity Card number Sri Lanka Identity Number National Identity Card number...
Submitted by
Isuru Ranawaka
-
2 years ago
1
nginx access regex loki
Golang
nginx access log regex
Submitted by
Lethisa Putri
-
2 years ago
1
ISO 8601:2004E Duration
.NET 7.0 (C#)
Regex for validating ISO 8601:2004E durations, complete with named capture groups.
Submitted by
Sakura Akeno Isayeki
-
2 years ago
1
S/O 73225392
PCRE2 (PHP >=7.3)
Replaces one style of markdown image with another
Submitted by
anonymous
-
2 years ago
1
Conventional Commits Validation Regex
PCRE2 (PHP >=7.3)
This regex matches most of the rules of conventional commits .
Submitted by
Ahmed Kamal
-
2 years ago
1
{{ start and and tags }}
PCRE2 (PHP >=7.3)
Not allowing strings that start with {{ or and with }} or }}.
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
1
url regex
PCRE2 (PHP >=7.3)
Submitted by
-
2 years ago
1
do_action and apply_filters name getter for Wordpress
PCRE2 (PHP >=7.3)
This will pluck out any do_action or apply_filters name in your code. Useful if you want to see what actions or filters have been added or deprecated between codebases, etc.
Submitted by
olie480
-
2 years ago
1
1
Golang
11
Submitted by
anonymous
-
2 years ago
1
https://www.facebook.com/theking/
PCRE2 (PHP >=7.3)
Facebook Social media
Submitted by
anonymous
-
2 years ago
1
iCal
PCRE2 (PHP >=7.3)
iCal parser
Submitted by
Appenjel
-
2 years ago
1
PowerShell RegEx - Renaming ROM Files in ROMs Directory
PCRE2 (PHP >=7.3)
Renaming ROM Files in ROMs Directory
Submitted by
MrMattiPants
-
2 years ago
1
surnames
Python
italian uppercase surnames
Submitted by
anonymous
-
2 years ago
1
find text in html
PCRE2 (PHP >=7.3)
for tp
Submitted by
anonymous
-
2 years ago
1
...
208
209
210
211
212
...
243
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