Add ignorecase and dotall flags