I have this thing that inserts spaces around a link. So if an original link looks like this ++++http://qwikad.com++++ the end result will look like this ++++ http://qwikad.com ++++
Somehow it works with all the characters except the asterisk. With asterisks the end result looks like this: **** http://qwikad.com**** It doesn't put the space at the end of a URL. Can anyone tell me why it doesn't?Code:
$text = preg_replace( '/(\b)(http|ftp|https|mailto|HTTP|FTP|HTTPS|MAILTO)([\:\/\/])([A-z0-9~!@$%&*()_+:?,.\/;=#-]{2,}[A-z0-9~@$%&*_+\/=])/', " $2$3$4 ", $text);

