Robert,
For what you want to achieve you should use the Regular Expression option in the Short answer question type. It is very powerful and - hence - very complicated to use. Have a good look at the online help and the examples provided here.
Joseph
Lesson
Adding feedback to a wrong response
This discussion has been locked so you can no longer reply to it.