fixing regex compilation call