$text = preg_replace ( '/\<a.+?href\="^(http)(.+?)".+?\>/i' , 'http://mioserver/$1' , $text );