updated regex and groups for dns labels