try<br><br>/^([\d*]{6})$/<br><br>\d is shorthand for 0-9 and anything in a [] is a set of chars so [\d*] means 0-9 and *<br>[\d*]{6} means exactly 6 from the previous set and wrap the whole thing in ^$ means exact match<br>
from beginning to end of the string.<br><br><br><div class="gmail_quote">2009/3/28 Robert Clayton <span dir="ltr">&lt;<a href="mailto:rjcajax@gmail.com">rjcajax@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Michael,<br><br>Good start! We are getting warmer.<br><br>Where <span>&quot;(\\*|\\d{6})&quot; will not match either * or 123456 or anything I can think of.<br></span><span>&quot;\\*|\\d{6}&quot; does match * and 123456 and does not match 1234<br>

So far so good.<br>BUT, if an asterisk(s) are entered in a combination with numbers anything goes **, *123, 123 *, 12*24, 12**34, 1*2*3, etc.<br><br>Bob<br></span><div><div></div><div class="h5"><span><br><br></span><div class="gmail_quote">

On Fri, Mar 27, 2009 at 5:54 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> 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>2009/3/27 Robert Clayton &lt;<a href="mailto:rjcajax@gmail.com" target="_blank">rjcajax@gmail.com</a>&gt;:<br>
&gt; Michael,<br>
&gt;<br>
&gt; Also note the error message reprints the expression without the escape.<br>
&gt;<br>
&gt; Bob<br>
&gt;<br>
&gt; On Fri, Mar 27, 2009 at 2:29 PM, Michael Collins &lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt; wrote:<br>
<br>
</div>That just hit me. Try &quot;\\*&quot; instead of &quot;\*&quot; to see if maybe the<br>
backslash is getting dropped off between Lua and FreeSWITCH.<br>
<div><div></div><div><br>
-MC<br>
<br>
_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org" target="_blank">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</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<br>