Im trying to write a regex to match a date to a string. The regex should return true for the following exampels:
hh:mm: ss 1/1/90
hh:mm: ss 01/01/90
Or any combination of the above. Basically I need to make sure that the string matches this
<any characters> ##/##/####</any characters>
Can someone give me the regex to do this? I cant seem to figure it out.
Worth 500 points.
public boolean isValidDate(String date)
final String RE_DATE = ""; //What goes in the "s?