Hi, I have a problem parsing a certain form of date. I'm using preg_match to find date in a text but I just can't get it right. The date format is: yyyy/mm/dd How should I write regexp to make it work? Any help is appreciated... Thanks S. p.l.u.r.
Slightly better would be: '/\d{4}\/\d{2}\/\d{2}/' PHP: Otherwise it would consider the following dates as valid: - 1/3/ - 12342423/12/12345124525 - /3/ - etc...
Nice suggestion, thanks. I never looked at it in such a way because the file I'm parsing only contains yyyy/mm/dd format in it p.l.u.r.