Regular Expressions 101

Library entries

Match Domain & SubDomians

Vote

0

Regular Expression
pcre

/
(www\.)*(?P<secure_domain>([-0-9a-z]+\.)?[-0-9a-z]+\.[a-z]+)$
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago