<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Try </tt><tt>replace_body_all("^s=xyz$","s=abc")
        to force also an end of header.<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 06.01.2015 18:03, John Nash wrote:<br>
    </div>
    <blockquote
cite="mid:CAA4rGPzZk4zVhZWKahobYugBCB4Vtk5=qfUR3WYcXBJJdpG7AQ@mail.gmail.com"
      type="cite">
      <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">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank">bogdan@opensips.org</a>&gt;</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 moz-do-not-send="true" 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 moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" 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>
    </blockquote>
    <br>
  </body>
</html>