$_ = 'some text http://moo.com fish'; /(http:\/\/)/ $href = $1;