I’m terrible with Regular Expressions but I believe in this case I must create one.
Basically, a user needs to type a date of format: MM/DD/YYYY into a TextInput and I need to verify it.
Can anyone point me in the direction of those old Flex regular expression testers that I can no longer find, please?
Thanks!
UPDATE:
Here’s the regular expression just in case it’ll help someone:
var pattern:RegExp = /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d$/;
Grant Skinner has regexer, I think thet’s what you are looking for
http://gskinner.com/RegExr/
regexpal is pretty decent too
http://regexpal.com/
\d{2}/\d{2}/\d{4}for DD/DD/DDDD\d\d?/\d\d?/\d{4}for D/D/DDDD and DD/DD/DDDD