views:

97

answers:

1

Hi all,

Am a newbie to iphone programming.

i have a input box and the user can write his DOB(mm/dd/yyyy) into the box. Before i save the data i like to test for valid input. I am using Regexlite.h and Regexlite.m.i have the regular expression too. i want to compare the regex to the user entered value in text box.But am not knowing how to do it.Please help.

Any idea how to test for a valid date? (in .NET i use a simple regex but for the iPhone sdk i am a bit helpless) - but somebody must have been done this before...

Thanks Viki

+1  A: 

Here is a regex you can use to parse it if your looking for something else just leave me a comment

^\d{2}/\d{2}/\d{4}$

Tommy