I'm in the middle of trying to update/upgrade my php from 5.3 to 7.3. i have a particular page where i used the following string:
if( ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2})", $start_date)&&
        ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2})", $end_date)){
It doesn't work because ereg was replaced by preg_match (apparently) in php 7.0.
what would be the preg_match equivalent string to what i have above with ereg??
 
    