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.
19th Feb 2025
·
Found it useful?