<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What exactly do you want to match? &nbsp;Can you give me examples?<div><br></div><div>/b</div><div><br><div><div>On Mar 26, 2009, at 11:05 PM, Robert Clayton wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">All,<br><br>Ok I know it must be me but...<br><br>In the Lua regex portion of session:playAndGetDigits what regex would I use to match either a numeric entry, or an asterisk. It seems when I attempt to define an asterisk as a character rather than a metacharacter the regex script is evaluated other than I would assume.<br>The error code presents \* as a single * and [*] other than a character, leading to the hint that there is no preceding character to multiply.<br><br>I have at most 15 minutes of proficiency in regular expressions, but, are not \* or [*] equivalent to an asterisk character, rather than a metacharacter?<br><br>Also it seems that the playAndGetDigits evaluates when either the maximum number of characters is entered or the terminator is pressed. Is there any way to evaluate the regex on each input and therefore dynamically return after an acceptable entry? As in the previous example a numeric string and a single asterisk are, usually, different lengths and if an asterisk was used for, say, abort, entering an asterisk followed by a terminator would seem incorrect.<br><br>Bob<span class="Apple-converted-space">&nbsp;</span><br></span></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-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; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Brian West</div><div><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></div><div><br></div></div></span>-- Meet us a ClueCon! &nbsp;<a href="http://www.cluecon.com/">http://www.cluecon.com</a><br><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>