fix regcomp flag.