<?php $text = 'tehdgsd f fs fsddf sdf http://mail.ru?dsdfll fdsfsd'; if (preg_match_all("/(https?:\/\/[^\s]+)/", $text, $m)) { echo trim($matches[0][0]); }
You have javascript disabled. You will not be able to edit any code.