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 17,620 community submitted regex patterns...
1
match non-alphanumeric in string
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
3
Remove br tags inside anchor tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
3
Non vowel words
ECMAScript (JavaScript)
/\b(+)\b/ig
Submitted by
regexe
-
8 years ago
3
TV Series filename parsing
PCRE (PHP <7.3)
Get TV Series name, season and episode numbers.
Submitted by
anonymous
-
8 years ago
3
iframe src parser
Python
Get iframe src
Submitted by
Sumeet Fefar
-
8 years ago
2
HTML comments
PCRE (PHP <7.3)
Groups HTML comments that are between .
Submitted by
Greaka
-
8 years ago
2
word before :
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
3
TTML time expression offset-time
PCRE (PHP <7.3)
no description available
Submitted by
ovvland
-
8 years ago
2
Case-sensitive keyword matching.
PCRE (PHP <7.3)
Case-sensitive matching of a keyword, where the keyword is not a substring of other words.
Submitted by
Norskov
-
8 years ago
2
BRAZILIAN VEHICLE PLATE
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
3
Remove _1 suffix from image filenames
PCRE (PHP <7.3)
Remove autogenerated file name suffixes from images whilst preserving the extension (e.g. .jpg) These suffixes are usually added when filename already exists in the directory an image is being saved to by an application. Magento is a fine example of a system that does this.
Submitted by
John Hughes
-
8 years ago
2
fffs
ECMAScript (JavaScript)
dfsfd
Submitted by
anonymous
-
8 years ago
3
pronouceable strings
PCRE (PHP <7.3)
find pronouceable 10 letter srings that are either all caps or all lowercases based on jsbin.com pronouceable urls
Submitted by
anonymous
-
8 years ago
2
US datetime
ECMAScript (JavaScript)
Validates a US mm-dd-yy(yy) with an optional hh:mm:ss time.
Submitted by
anonymous
-
8 years ago
3
To search for a image tag
PCRE (PHP <7.3)
This pattern would select the whole image tag
Submitted by
Dulsara Dhanuka Sethunga
-
8 years ago
3
Active Affiliate, Contractor or Employee
PCRE (PHP <7.3)
no description available
Submitted by
MR
-
8 years ago
1
word matcher
ECMAScript (JavaScript)
no description available
Submitted by
Cengizism
-
8 years ago
3
ICD-10-CD Diagnosis Code
PCRE (PHP <7.3)
ICD-10-CM Diagnosis Code per https://www.cms.gov/Medicare/Coding/ICD10/downloads/ICD-10Overview.pdf
Submitted by
Cloud Cray
-
8 years ago
1
Strip Specific HTML Tags
PCRE (PHP <7.3)
Strip specific HTML tags from a string—opposite of PHP's strip_tags(). Replace letter 'p' with your tag name. Using PHP preg_replace(), example: preg_replace('/(]>)(.?)()|(]*>)/i', '$2', $string);
Submitted by
Zachary Beschler
-
8 years ago
3
RAR and ZIP files
PCRE (PHP <7.3)
recognizes RAR archives (including splitted archives) and ZIP archives
Submitted by
anonymous
-
8 years ago
1
...
33
34
35
36
37
...
881
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