Pass along the ignore case flag of regexp patterns.
flag is attr on regex, not pattern