Upgrade ereg* calls to preg*