Hi, I want to do a case insensitive match, for example for Privacy header that can contain "id", "ID", "Id"... and other values.
I need something as:
if ($hdr(Privacy)=~"id"/i) {
but this obviously fails. Which is the way to do it?
Thanks.
El Friday 18 July 2008 12:22:46 Iñaki Baz Castillo escribió:
Hi, I want to do a case insensitive match, for example for Privacy header that can contain "id", "ID", "Id"... and other values.
I need something as:
if ($hdr(Privacy)=~"id"/i) {
but this obviously fails. Which is the way to do it?
The trick was: if avp_check("$hdr(Privacy)","re/id/I")
:)