Format ivr input?

Could i handle the formatted input in ivr ? For example, customer will listen a question: “What is your date of birth?”, and i want he input in the format ddmm*yyyy# . How could i do that?

First of all: If You want the input to be in a specific format You should announce this to the customer.

And afterwards You’ll have to verify wheter the expected format was given or not. Supposed You would use the Read-application for the Input from the customer in such cases You would need to check the variable-Content from the Read-application against any kind of REGEX (example):

exten => s,n(again),Read(var) exten => s,n,GotoIf($[${REGEX("^[0-9][0-9]*[0-9][0-9]*[1-2][0-9][0-9][0-9]$" ${var})}=0]?again) exten => s,n,NoOp(Any further logic for correct input starts here)