* Thus wrote jsWalter ([EMAIL PROTECTED]): > I have a fairly complicated regular expression that was written for perl. > > I've spent the last 4 days trying to convert it to PHP.
have you looked at strtotime()? http://php.net/strtotime The Date formats it can find are defined here: http://www.gnu.org/manual/tar-1.12/html_chapter/tar_7.html Those regex's look like a nightmare, like they usually do :) > > # Does input match this RegEx? > > (($day,$mon,$yr,$hr,$min,$sec,$tz) = > /^ > (\w{1,3}) # month > \s+ > (\d\d?) # day > \s+ > (\d\d?):(\d\d) # hour:min > (?::(\d\d))? # optional seconds > \s+ > (?:([A-Za-z]+)\s+)? # optional timezone > (\d+) # year > \s*$ # allow trailing whitespace > /x) > Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php