implement ignore_case for match_end()