With regards to the regular expressions. I am wondering if we need to build validation into it (i.e restrict the input to the correct number of days in the month) or are they just looking for the format of the date. Anyone have an idea?
I was thinking more along the lines of date validation in terms of checking the number of days in the month is correct (not validation on input itself) but more specifically a rule which I would rather not do and that is check for leap years.. I have no idea where to begin on doing a validation rule to include date validation that has leap years included in the regular expression.
There is no way that you can use QRegExp to validate a date, even when using the more advanced features like assertions (e.g. looking forward). I think the best you can do is use the QRegExp to restrict the format of the input and then validate afterwards.
Go back to the requirements specification for the question. If it is vague, say so in your assignment. If it lacks information, make an assumption and state that in your assignment too. This is a third level course, you're supposed to show you can think for yourself not just produce output like a robot. Showing your thought process can help a lot.