Add case-insensitive search to switch_regex_match() based on code from switch_regex_perform().