Hi Bogdan,<div>Thanks for the reply.</div><div>So the RE that i had written which is&nbsp;if(uri=~&quot;^sip:\+[2-9]*@&quot;) &nbsp;should match +91981122334455 right?</div><div>But it does not. Any suggestions?</div><div><br></div>
<div>--- Jayesh<br><br><div class="gmail_quote">On Wed, Oct 29, 2008 at 1:12 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Jayesh,<br>
<br>
try:<br>
 &nbsp; if ($ru=~&quot;^sip:\+<a href="mailto:12127773456@domain.com" target="_blank">12127773456@domain.com</a> &lt;mailto:<a href="mailto:sip%253A%252B12127773456@domain.com" target="_blank">sip%3A%2B12127773456@domain.com</a>&gt;&quot;)<br>

<br>
+ is a special chr in regexp and you need to escape it to use it.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Jayesh Nambiar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
Can someone please guide me to write a regular expression that matches URIs like <a href="mailto:sip%3A%2B12127773456@domain.com" target="_blank">sip:+12127773456@domain.com</a> &lt;mailto:<a href="mailto:sip%253A%252B12127773456@domain.com" target="_blank">sip%3A%2B12127773456@domain.com</a>&gt; in OpenSIPS.<div class="Ih2E3d">
<br>
I want to match numbers starting from &#39;+&#39;.<br>
<br>
Any help would be highly appreciated.<br>
<br>
Thanks in advance.<br>
<br>
w/regards,<br>
Jayesh<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
 &nbsp;<br>
</blockquote>
<br>
</blockquote></div><br></div>