Regular Expressions 101

Sponsors

Library entries

0
javascript

MyRegex

Parse
Submitted by anonymous - 2 days ago
0
javascript

import syntax for regex with grouping

HAYO!
Submitted by CreeJee - 3 days ago
0
javascript

Capture Words

Get each word from a text.
Submitted by anonymous - 4 days ago
0
javascript

File extension

Parse file extension.
Submitted by Webmato - 4 days ago
0
java

date dd.mm.yyyy

Date format dd.mm.yyyy
Submitted by anonymous - 5 days ago
0
python

apdl flst

apdl flst
Submitted by anonymous - 5 days ago
0
python

ipv4 addresses

Valid ip addreses
Submitted by anonymous - 8 days ago
0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 9 days ago
0
java

partnkey value

Extract value partn_key
Submitted by anonymous - 11 days ago
0
javascript

sql inj

as
Submitted by anonymous - 13 days ago

Regex de validação de número celular e fixo | JS (ECMAScript)

Vote

1

Regular Expression
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

Description

Loading markdown...
Submitted by anonymous - 5 months ago