我已升级我的php现在我收到了eregi_replace的警告消息
请帮助我将以下ereg表达式转换为preg?
$str = eregi_replace("[[:space:]]+", " ", $str);
$text = eregi_replace('<a href=?([^ "\']*)>([^<]*)</a>', '<a href="\\1">\\2</a>', $text);
$text = eregi_replace('<a href=(\')?([^ "\']*)(\')>([^<]*)</a>', '<a href="\\2">\\4</a>', $text);
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)', '\\1<a href="http://\\2" target="_blank">\\2</a>', $text);
$text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})', '<a href="mailto:\\1" target="_blank">\\1</a>', $text);
由于