[SR-Users] remove headers with less than 5 characters with textops

Patrick Karton patrickarton at hotmail.com
Tue Jun 7 18:39:15 CEST 2022


in fact it was just example when i said 5.

i just wondered if the remove_hf_re function understands that regular expression.

it seems the regular expression that we can use with that function is limited. i did not look in details in source code right now.
________________________________
De : sr-users <sr-users-bounces at lists.kamailio.org> de la part de Ben Kaufman <bkaufman at bcmone.com>
Envoyé : mardi 7 juin 2022 17:00
À : Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Objet : Re: [SR-Users] remove headers with less than 5 characters with textops


I know it’s not really a direct answer to your question, but wouldn’t that remove the Cseq: header.  Are you sure that’s desirable?



Ben Kaufman



From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Patrick Karton
Sent: Tuesday, June 7, 2022 9:59 AM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] remove headers with less than 5 characters with textops



Hello



im trying to textops module  to remove headers with name length less than 5 characters with regular expression but it seems impossible or the module does not handle $ char



remove_hf_re("^.{1,5}$")


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220607/372704cb/attachment.htm>


More information about the sr-users mailing list