Searching multiline text fails when ignore-case flag is on