Code: Select all
$date_range = "9/15/06-9/19/06";
$match_exp = "/(?<Month>\d{1,2})\/(?<Day>\d{1,2})\/(?<Year>(?:\d{4}|\d{2}))(?x)/";
preg_match_all($match_exp, $date_range, $dates_match);Code: Select all
Warning: Compilation failed: unrecognized character after (?< at offset 3 in myscript.php on line 68Any help would be appreciated.
EDIT:This doesn't work either.
Code: Select all
$match_exp = "(?<Month>\d{1,2})/(?<Day>\d{1,2})/(?<Year>(?:\d{4}|\d{2}))(?x)"Code: Select all
Warning: Unknown modifier '/' in myscript.php on line 68