String methods

縮寫
縮寫 在 PowerShell 中
Function Get-Acronym() {
    [CmdletBinding()]
    Param (
        [string]$Phrase
    )
    ( $Phrase -replace "[-_]"," " -split " " | Foreach-Object {$_[0].ToString().ToUpper()} ) -join ""
}

Find and replace strings.
About Split operator.
About Join operator.

Translation missing: zh-TW.number.nth.ordinalized Sep 2026 · 覺得有幫助嗎?