improved regex local verification