Re: [Freeswitch-dev] Lua session:playAndGetDigits regex

2009-03-28 Thread Robert Clayton
Or to be more specific: As a side note, when this gets worked out I am not sure if this answers my other problem. If I wished for, say, "enter 6 numeric digits or an asterisk to allow reentry." Is there any way to allow for an immediate response for either 6 consecutive numeric digits or an aster

Re: [Freeswitch-dev] Lua session:playAndGetDigits regex

2009-03-28 Thread Robert Clayton
Anthony, You are a good man. Early in the morning and up working. Though not presenting an error these versions return no results. agent_id = session:playAndGetDigits(1,6, 2, 1,"#", "c:/DictationProject/audio/Validating.wav", "", "^([\d*]{6})$"); agent_id = session:playAndGetDigits(1,6, 2, 1

Re: [Freeswitch-dev] Lua session:playAndGetDigits regex

2009-03-28 Thread Anthony Minessale
try /^([\d*]{6})$/ \d is shorthand for 0-9 and anything in a [] is a set of chars so [\d*] means 0-9 and * [\d*]{6} means exactly 6 from the previous set and wrap the whole thing in ^$ means exact match from beginning to end of the string. 2009/3/28 Robert Clayton > Michael, > > Good start! W