Regular Expressions 101

Library entries

Separating Server and Domain from FQDN

Vote

2

Regular Expression
pcre

/
(?<ServerName>[^.][a-z 0-9 A-Z _ -]*)\.(?<Domain>.*)
/

Description

Loading markdown...
Submitted by Awan - 6 years ago