$message = preg_replace(
'#https?://x\.com/([a-zA-Z0-9_]+)/status/([0-9]+)#',
'[twitterx]https://twitter.com/$1/status/$2[/twitterx]',
$message
);
1 - Victor Valdes | Page 407 | FC Barcelona Forum
Recently retired shot-stopper has opted for a change of career, launching a TV production company - as well as his own show, where he'll interview former colleagues.