add regex to PHP v1.0