update php and regex