@([^:]*)<br><br>no that is not me swearing cos of all the emails, that&#39;s the regex.<br><br>again try the &quot;info&quot; app to see that most of the relevant uris are already cut up into variables for you.<br><br><br>
<br><div class="gmail_quote">On Mon, Jun 23, 2008 at 7:44 AM, Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Please refer your local book store about info about regexp.<div><br></div><div><a href="http://www.regular-expressions.info/" target="_blank">http://www.regular-expressions.info/</a></div><div><br></div><div>
<br><div><div><div></div><div class="Wj3C7c"><div>On Jun 23, 2008, at 4:57 AM, Sandeep Ammaladinna wrote:</div><br></div></div><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div link="blue" vlink="purple" lang="EN-US">
<div><div></div><div class="Wj3C7c"><div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Hi,</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt;">
<font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"><span>&nbsp;<span>&nbsp;</span></span>Can anybody help me out with a regular expression (in the context of writing a dial plan) to extract the host part of a SIP URI.</span></font></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"><span>&nbsp;</span>Suppose I have a sip<span>&nbsp;</span><span>uri</span><span>&nbsp;</span>like "<a style="color: blue; text-decoration: underline;">sip:alice@example.com</a>" or<span>&nbsp;</span><a href="mailto:alice@10.0.16.20" style="color: blue; text-decoration: underline;" target="_blank">alice@10.0.16.20</a><span>&nbsp;</span>what is the procedure to extract the host part?</span></font></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;"><span>&nbsp;<span>&nbsp;</span></span>I know the procedure to extract the user part,<span>&nbsp;</span><span>ie</span>, "$1@". But what is the procedure to extract the host part????????</span></font></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Please help me, I am stuck.</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt;">
<font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">Thanks and Regards,</span></font></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt;"><font face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;">-Sandeep A</span></font></div></div></div></div>_______________________________________________<br>
Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org" style="color: blue; text-decoration: underline;" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" style="color: blue; text-decoration: underline;" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" style="color: blue; text-decoration: underline;" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" style="color: blue; text-decoration: underline;" target="_blank">http://www.freeswitch.org</a><br>
</div></span></blockquote></div><br></div></div><br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400