you could set no terminator instead and just look for the ## with your regex.<div>It&#39;s uncommon, so it&#39;s only not possible because there has been no demand for it at all.</div><div><br><br><div class="gmail_quote">
On Tue, Aug 17, 2010 at 12:45 PM, Nigel Kent <span dir="ltr">&lt;<a href="mailto:ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Are you suggesting using something other then playandgetdigits<div class="im"><br><br>--- On <b>Tue, 17/8/10, David Ponzone <i>&lt;<a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>&gt;</i></b> wrote:<br>
</div><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><div class="im"><br>From: David Ponzone &lt;<a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>&gt;<br>
Subject: Re: [Freeswitch-users] playandgetdigits regex to get &#39;#&#39;<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</div>Date: Tuesday, 17 August, 2010, 16:36<div><div></div><div class="h5"><br><br><div>I dont know if it&#39;s possible in FS, but did you think about not defining a terminator, defining max-length to 1, and then getting the DTMF one by one, concatenating them in a variable where you would look for ## ?<div>
<br><div> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;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 style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;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 style="word-wrap:break-word">
<div><font face="&#39;Helvetica Neue&#39;"><font color="#1c00ff">David Ponzone  </font><font size="3" color="#000000"><span style="font-size:12px">Direction Technique</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">email: <a rel="nofollow" href="http://mc/compose?to=david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div>
<div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">tel:      01 74 03 18 97</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">gsm:   06 66 98 76 34</span></font></font></div>
<div><font face="&#39;Helvetica Neue&#39;"><br></font></div><div><font face="&#39;Helvetica Neue&#39;" color="#1c00ff">Service Client<span> </span></font><font face="&#39;Helvetica Neue&#39;"><font color="#ff0000">IP</font></font><font face="&#39;Helvetica Neue&#39;" color="#1c00ff">eva</font></div>
<div><font face="&#39;Helvetica Neue&#39;" color="#1c00ff"><span style="color:rgb(0, 0, 0);font-family:Helvetica"><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">tel:      0811 46 26 26</span></font></font></div>
<div><font face="&#39;Helvetica Neue&#39;" size="3"><span style="font-size:13px"><div style="margin:0px;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(0, 34, 243)">
<span style="text-decoration:underline"><a rel="nofollow">www.ipeva.fr</a></span><span style="color:rgb(101, 104, 149)">  -   <span style="color:rgb(0, 34, 243);text-decoration:underline"><a rel="nofollow">www.ipeva-studio.com</a></span></span></div>
<div style="margin:0px;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><br>
</span></div><div style="margin:0px;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(0, 34, 243)"><span><div style="margin:0px;text-align:justify;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(192, 192, 192)">
<i>Ce message et toutes les pièces jointes sont confidentiels et établis à l&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous
 n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;expéditeur.</i></div><div style="text-decoration:underline;text-align:justify"><font color="#c0c0c0"><i><br></i></font></div>
</span></div></span></font></div></span></font></div></div></span><br></div></span><br> </div><br><div><div>Le 17/08/2010 à 18:19, Nigel Kent a écrit :</div><br><blockquote type="cite"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-size-adjust:inherit;font-stretch:inherit" valign="top">I see, how clumsy of me.<br>
<br>I have been focusing too much on capturing two #&#39;s. Still
 is this not possible some way.<br><br>I want the two ##&#39;s because it is already the common usage in what I want to do so would prefer to keep the same<br><br><br><br>--- On <b>Tue, 17/8/10, David Ponzone <i>&lt;<a rel="nofollow" href="http://mc/compose?to=david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>&gt;</i></b> wrote:<br>
<blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px"><br>From: David Ponzone &lt;<a rel="nofollow" href="http://mc/compose?to=david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>&gt;<br>
Subject: Re: [Freeswitch-users] playandgetdigits regex to get &#39;#&#39;<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a rel="nofollow" href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date:
 Tuesday, 17 August, 2010, 15:59<br><br><div>Nigel, how do you want to capture a # if # is the terminator ? :)<div>if you want to capture #, you need to use * as the terminator.</div><div><br><div> <span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;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>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;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>
<div><font face="&#39;Helvetica Neue&#39;"><font color="#1c00ff">David Ponzone  </font><font size="3" color="#000000"><span style="font-size:12px">Direction Technique</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">email: <a rel="nofollow">david.ponzone@ipeva.fr</a></span></font></font></div>
<div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">tel:  
    01 74 03 18 97</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">gsm:   06 66 98 76 34</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><br>
</font></div><div><font face="&#39;Helvetica Neue&#39;" color="#1c00ff">Service Client<span> </span></font><font face="&#39;Helvetica Neue&#39;"><font color="#ff0000">IP</font></font><font face="&#39;Helvetica Neue&#39;" color="#1c00ff">eva</font></div>
<div><font face="&#39;Helvetica Neue&#39;" color="#1c00ff"><span style="color:rgb(0, 0, 0);font-family:Helvetica"><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size:13px">tel:      0811 46 26 26</span></font></font></div>
<div><font face="&#39;Helvetica Neue&#39;" size="3"><span style="font-size:13px"><div style="margin:0px;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(0, 34, 243)">
<span style="text-decoration:underline"><a rel="nofollow">www.ipeva.fr</a></span><span style="color:rgb(101, 104, 149)">  -   <span style="color:rgb(0, 34, 243);text-decoration:underline"><a rel="nofollow">www.ipeva-studio.com</a></span></span></div>
<div style="margin:0px;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><br>
</span></div><div style="margin:0px;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(0, 34, 243)"><span><div style="margin:0px;text-align:justify;font-family:Arial;font-style:normal;font-variant:normal;font-weight:normal;font-size:10px;line-height:normal;font-size-adjust:none;font-stretch:normal;color:rgb(192, 192, 192)">
<i>Ce message et toutes les pièces jointes sont confidentiels et établis à l&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;expéditeur.</i></div>
<div style="text-decoration:underline;text-align:justify"><font color="#c0c0c0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></div></span><br>
 </div><br><div><div>Le 17/08/2010 à 17:38, Nigel Kent a écrit :</div><br><blockquote type="cite"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;font-size-adjust:inherit;font-stretch:inherit" valign="top">
Sorry about that. Thanks for the tip<br><br>Yes the terminator is set as # but I want to capture a seperate # aswell. In effect the user will enter ##. The second instance is the terminator and I am checking the dtmf varible for the which should have the the last key as #. But it appears # is not being copied to the dtmf varible. <br>
<br>So is my regex pattern correct or is it some other issue<br><br>--- On <b>Tue, 17/8/10, Brian West <i>&lt;<a rel="nofollow">brian@freeswitch.org</a>&gt;</i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px">
<br>From: Brian West &lt;<a rel="nofollow">brian@freeswitch.org</a>&gt;<br>Subject: Re: [Freeswitch-users] playandgetdigits regex to get &#39;#&#39;<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a rel="nofollow">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date: Tuesday, 17 August, 2010, 15:18<br><br><div>In the future please click NEW message and input the address for the list.  You have Hijacked your own thread three times already... Please try not to do that as your emails can get lost in some people&#39;s mail readers that thread based on the headers in the email.<br>
<br>Do you have # set as the terminator?<br><br>/b<br><br><br>On Aug 17, 2010, at 10:11 AM, Nigel Kent wrote:<br><br>&gt; I want to capture # key in playandgetdigits and copy it to the varible but &quot;\\d+|\/#/&quot; is not working. The varible does not contain the &#39;#&#39; key<br>
&gt; <br>&gt;
 _______________________________________________<br>&gt; FreeSWITCH-users mailing list<br>&gt; <a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br>&gt; <a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>&gt; <a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></blockquote></td></tr></tbody></table><br>       _______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></div></blockquote></td></tr></tbody></table><br>       _______________________________________________<br>FreeSWITCH-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</blockquote></div><br></div></div><br>-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></div></blockquote></td></tr></tbody></table><br>



      <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>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</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="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>