<blockquote>
<p>What are you thoughts on using something like TinyExpr from <a href="https://github.com/codeplea/tinyexpr">https://github.com/codeplea/tinyexpr</a> ?</p>
</blockquote>

<p>I think it's more than a reasonable solution, especially since it's easy to use (1 file + 1 header). I only wrote our own quick parser because I didn't want to impose too many dependencies, but the fact that <code>TinyExpr</code> is zlib licenced code is another reason to go with it! All in all, I'm all for the switch to <code>TinyExpr</code>.</p>

<blockquote>
<p>if ($(var(temp){s.int}) &lt; 0) {<br>
...</p>
</blockquote>

<p>This looks like a limitation - we definitely need to make <code>{s.int}</code> more permissive with such input, since it should have easily grabbed the <code>-2</code> part, even if the input string were <code>"-2.foobar"</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/788#issuecomment-185199872">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibReVBxxeew3_o3_13y5fCRi6Ryhks5plGpTgaJpZM4HYgPF.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/788#issuecomment-185199872"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>