我需要使用 PHP 正则表达式从该 URL 的末尾删除“_normal”。
http://a0.twimg.com/profile_images/3707137637/8b020cf4023476238704a9fc40cdf445 _normal .jpeg
使它变成
http://a0.twimg.com/profile_images/3707137637/8b020cf4023476238704a9fc40cdf445.jpeg。
我试过了
$prof_img = preg_replace('_normal', '', $prof_img);
但下划线似乎把事情扔掉了。