3
我需要一個正則表達式的PHP代碼來檢測類似鏈接:PHP的正則表達式t.me鏈接
t.me/joinchat/AAAAAEEYZxAYyxhdag6z6g
我已經試過:
$String = preg_replace("/[t.me][a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/", "", $String);
我需要使用preg_replace
但上面不是代碼工作:(
我應該怎麼做這