$message = preg_replace(
'#https?://x\.com/([a-zA-Z0-9_]+)/status/([0-9]+)#',
'[twitterx]https://twitter.com/$1/status/$2[/twitterx]',
$message
);
Williot Swedberg | FC Barcelona Forum
Funny, we were close to get him before he choose Celta, was a weird choice at the time.
Actually, still a bit weird choice. Other than the goals he is very inconsistent there