/
(?(DEFINE)(?'cont'(htt(ps|p)|(sft |ft)(ps|p)|ss(l|h)|smb|git|network|file|smtp|vnc))(?'pg'(?<port>\:[0-3][0-5][0-5][0-6][0-5])|(?<gitusr>\:[a-zA-Z0-9\-]{3,39}))) (?<pro>(?P>cont)\:\/\/)(?<dom>[[:alnum:]]+\.[[:alnum:]]+\.[[:alnum:]]{2,6})(?P>pg){0,1}(?<fp>\/[[:print:]]+\/){0,}(?<file>[[:graph:]]+\.[[:alnum:]]{1,6}){0,1}
/
x