<div dir="ltr">Yes!!..It works. I used EOH because in actual implementation I need to use some regular expression ( So that it can change s= line to "xyz" no matter what the original value.) but with EOH (even with hard coded value) it does not work.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 6, 2015 at 9:28 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div><tt>Hi John,<br>
<br>
I guess you want to replace a line in the message body with
replace_body_all(), right ? Give it a test without the EOH :<br>
</tt><tt>replace_body_all("^s=xyz","s=abc");<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
On 02.01.2015 17:06, John Nash wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">
<div>Has there been some recent changes to this function? I used
this function in version 1.6 fine but now not seem to be
working. I am trying very simple ..<br>
<br>
replace_body_all("^s=xyz\r\n","s=abc\r\n");<br>
<br>
</div>
But it does not work. I tried " strip_body()" and it worked as
expected.<br>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>