Regular Expressions 101

Sponsors

Library entries

0
pcre

CPF

Regra de validação de CPF.
Submitted by anonymous - a year ago
0
pcre2

find matched words

find matched words
Submitted by fajar - a year ago
0
pcre2

Cron regex

cron regular expression
Submitted by anonymous - a year ago
0
pcre2

Not ending with png

Not ending with png
Submitted by Archon - a year ago
0
pcre

Semver

Public library
Submitted by Masoud shokohi - a year ago
0
pcre2

SamAccountName

Test for valid ActiveDirectory SamAccountName
Submitted by gareth - a year ago
0
javascript

IPv4 address

IPv4 address RegExp.
Submitted by Sling - a year ago
0
javascript

ESO

eso
Submitted by KC - a year ago

Parse URL by subcomponent

Vote

0

Regular Expression
pcre

/
^(?<Scheme>[file|ftp|https{0,1}|ldap|telnet]+:\/{2})?(?<Subdomain>[a-zA-Z0-9-]{0,4}\.)?(?<Domain>\w+\.\w+\.?\w+\/)(?<Subdirectory>@[\w.]+\/)?(?<Path>[\w_~.-]+\/?[\w_-]+\/{0,1}?[\w_~.-]+)(?<Query>[%?&;].[\w&_~.=-]+)?(?<Fragment>#?[\/\w_-~.,=&-]+)?$
/
gm

Description

Loading markdown...
Submitted by Syd Salmon - 3 years ago