Update regex on validate