Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $message = preg_replace('#*{2}(.*?)*{2}#', '<b>$1</b>', $message);
- $message = preg_replace('@(https?://([-w.]+[-w])+(:d+)?(/([w/_.#-]*(?S+)?[^.s])?)?)@', '<a href="$1" target="_blank">$1</a>', $message);
Add Comment
Please, Sign In to add comment