[sr-dev] [kamailio/kamailio] textops: Behavior of function search_append_body(re, txt) (#882)

Daniel-Constantin Mierla notifications at github.com
Sun Dec 4 22:16:01 CET 2016


The ^ and $ are not part of the matched expression, but boundaries to constrain the matching.

Therefore I think the current behaviour is more intuitive for one working with regular expressions. Note that the end of string can be either \r, \n or 0x0 -- your proposal to add after the boundary constraint can mean that for other cases should be added after 0x0.

You can eventually add a new function, but the current one should stay as it is (or get new parameters to control the behaviour).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/882#issuecomment-264731805
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20161204/dc531e0a/attachment.html>


More information about the sr-dev mailing list