Help for this page

Select Code to Download


  1. or download this
    $month = '(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?
                  |Apr(?:il)?|May|Jun(?:e)?
    ...
                  |Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+';
      $day = '([0-3]?[0-9])(?:th|st|nd|rd)?,?\s+'; 
      $year = '([0-9]{2,4})';
    
  2. or download this
    if (( ($month, $day, $year) = (/$month$day$year/io) ) ||
        ( ($day, $month, $year) = (/$day$month$year/io) ) ) {
    ...
        $month = substr($month, 1, 3);
        print "$day-$month-$year\n";
    }