I have this regex for preg_replace. He is replace all urls in given string.
Now I need replace only t.co urls. https://t.co/* and etc.
preg_replace('/\b((https?|ftp|file):\/\/|www\.)[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', ' ', $text);
How to do it with preg_replace?