Complete generation to validate reg.exp.