regex compilation bug, unmatched paren fixed