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
Community Patterns
Search among 3,400 community submitted regex patterns...
0
email regex
ECMAScript (JavaScript)
email regex expression...feel free to comment if you find efficient way
Submitted by
anonymous
-
3 years ago
0
Get Youtube ID from shared URL
ECMAScript (JavaScript)
Given a youtube URL ... pull the video ID
Submitted by
anonymous
-
3 years ago
0
获取导入的模块相对路径
ECMAScript (JavaScript)
获取导入的模块相对路径
Submitted by
高乐天
-
3 years ago
0
Domain from url
ECMAScript (JavaScript)
Domain from url
Submitted by
anonymous
-
3 years ago
0
Find between Quotes
ECMAScript (JavaScript)
Find between Quotes
Submitted by
anonymous
-
3 years ago
0
Text Search
ECMAScript (JavaScript)
Text Search
Submitted by
anonymous
-
3 years ago
0
mysql slow log parse for aws log insights
ECMAScript (JavaScript)
Parse the CloudWatch mysql slowlog into coherent fields.
Submitted by
Frank Baxter
-
3 years ago
0
Exchange Address
ECMAScript (JavaScript)
Finds Telephone Exchange Address
Submitted by
anonymous
-
3 years ago
0
float with comma or point
ECMAScript (JavaScript)
if you need positive or negative float number with comma or point
Submitted by
Deadula
-
3 years ago
0
Fix gRPC method types
ECMAScript (JavaScript)
Changes gRPC methods to be in the proper format
Submitted by
anonymous
-
3 years ago
(Last modified 3 years ago)
1
Simple AWS ARN Regex
ECMAScript (JavaScript)
Simple AWS ARN Regex
Submitted by
anonymous
-
3 years ago
0
US Telephone Number validation
ECMAScript (JavaScript)
regex code for US telephone number validation for freecodecamp exercise
Submitted by
Erik @raxsonic
-
3 years ago
1
Regex for chatbot to match & extract multiple command
ECMAScript (JavaScript)
Example: "/lowercase HELLO .:uppercase ::weather london" Match #1 prefix: / command: lowercase arguments: HELLO...
Submitted by
CietstHydroxide
-
3 years ago
1
Validate name or last-name
ECMAScript (JavaScript)
Регулярное выражение. От 1 до 15 символов, включая пробелы, исключая спец символы. На любых языках.
Submitted by
anonymous
-
3 years ago
0
vue component import suffix replace
ECMAScript (JavaScript)
为了使用vite,替换必须有后缀
Submitted by
anonymous
-
3 years ago
0
email validation
ECMAScript (JavaScript)
check valid email
Submitted by
anonymous
-
3 years ago
0
test
ECMAScript (JavaScript)
f
Submitted by
anonymous
-
3 years ago
0
Number Parsing w/ Scientific Support
ECMAScript (JavaScript)
Capture a number out of a string. Supports positive/negative, decimal, and Scientific Notation
Submitted by
Brombomb
-
3 years ago
1
Semantec Versioning
ECMAScript (JavaScript)
Various RegEx expressions that work with Semantic Versioning,
Submitted by
Flemming Steffensen
-
3 years ago
3
discord invite link
ECMAScript (JavaScript)
detect discord invite links such as: discord.gg/link discord.com/invite/link .gg/link .com/invite/link...
Submitted by
padero
-
3 years ago
1
...
37
38
39
40
41
...
170
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