powershell 判斷字串開頭字元

 $email="fender.yao@aceraeb.com"

if ($email.StartsWith('s') -or $email.StartsWith('t-')){
    Write-Host("Match");
}else{
    Write-Host("Not Match");
}




footer See also :

留言

這個網誌中的熱門文章

Office 2021 離線安裝封裝與KMS啟動步驟

Ollama使用心得與模型導入教學

ARC下NSMutableDictionary 無法使用retainCount