..F....... [ZBX-2603] added validation while working with regular expressions