<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>the syntax is flexible it terms of the delimiter character, being
      borrowed from the sed tool. Practically you can replace / with any
      other character to make it easier to write your substitution
      expression.</p>
    <p>The ! is used for DBURL because there are / in the content (like:
      mysql://...) which should be escaped (like: mysql:\/\/:...) if /
      would be used as delimiter.</p>
    <p>So, you can use whatever delimiter you want and should be fine,
      like: "/regexp/subst/flags", "!regexp!subst!flags" or
      "ZregexpZsubstZflags".</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 19.09.22 12:11, Fredrik Dahlgren
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHOY6wFw36enjqwQHgxrmw+yTC7DyykMg1dci=-8=+XF1aZKUw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>I'm looking at a kamailio config where all substdef have
          the syntax "!regexp!subst!flags", "!DB_URL!<a
            href="http://db.example.com" moz-do-not-send="true">db.example.com</a>!g"
          but i can't find this syntax in the documentation. It's
          currently running on a fairly modern 5.x version and as far as
          i know it has never been on 4.x or older.</div>
        <div><br>
        </div>
        <div>Does anyone know where this syntax is from and if it's
          possible/recommended to simply replace it with
          "/regexp/subst"?</div>
        <div><br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div style="font-family:Helvetica;font-size:12px"><font
                  color="#434343"><b>Fredrik</b> <b>Dahlgren</b> </font><font
                  color="#666666">| Senior SIP/VoIP Engineer</font></div>
              <div style="font-family:Helvetica;font-size:12px"> <a
                  href="mailto:fredrik.dahlgren@freespee.com"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">
                  fredrik.dahlgren@freespee.com</a> |  <a
                  href="https://www.linkedin.com/company/freespee/"
                  target="_blank" moz-do-not-send="true">LinkedIn</a> |
                 <a href="https://twitter.com/freespee" target="_blank"
                  moz-do-not-send="true">Twitter</a> </div>
              <div style="font-family:Helvetica;font-size:12px"><br>
              </div>
              <div style="font-family:Helvetica;font-size:12px">
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * <a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  Oct 10-13, 2022 (Europe Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>