Another regex match question

Ron Kelley <[email protected]> Tue, 8 Apr 2025 12:08:49 -0400
Newsgroups gmane.comp.monitoring.monit.general
Message-ID <[email protected]>
Greetings all,

I am trying to do a case-insensitive match for the words =E2=80=9Cerror=E2=
=80=9D and =E2=80=9Cout of memory=E2=80=9D on our DB servers and am not =
having much luck.  I saw a few threads from +5yrs ago but the =
suggestions don=E2=80=99t seem to work.  Also, I looked over the monit =
manual and the regex(7) man page but I am still not able to get a simple =
match working.  One thread suggests to modify the source code and =
recompile, but that does not seem to help (I downloaded and compiled =
monit version 5.34.4) .

Specifically, the syntax: "if match '(?i)error' then alert=E2=80=9D =
throws the error: "Regex parsing error: Invalid preceding regular =
expression ''(?i)error=E2=80=99=E2=80=99


Any hints for an easy-to-use case-insensitive match string?

Thanks.=