use PCRE syntax instead of the beautiful new (?i ...) syntax

This commit is contained in:
Vern Paxson 2018-06-29 13:01:05 -07:00
parent 726424f371
commit 85c4b0d285
6 changed files with 12 additions and 14 deletions

View file

@ -104,7 +104,7 @@ void Specific_RE_Matcher::AddPat(const char* new_pat,
void Specific_RE_Matcher::MakeCaseInsensitive()
{
const char fmt[] = "(+i %s)";
const char fmt[] = "(?i:%s)";
int n = strlen(pattern_text) + strlen(fmt);
char* s = new char[n + 5 /* slop */];