[SR-Users] Caseless regex

Marat Gareev maratkin94 at gmail.com
Tue Oct 13 10:54:38 CEST 2020


Hello,

Is it possible write more readable regular expression
if ($tU =~ "(?i)^test$") {
...
}
instead of "^[tT][eE][sS][tT]$"?

On the first option, I get the error:
0(47250) ERROR: <core> [core/rvalue.c:3038]: fix_match_rve(): Bad regular
expression

Regards,
Marat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201013/4a999a3a/attachment.htm>


More information about the sr-users mailing list