Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 193 Bytes

replace-wildcard-character-in-text-with-powershell.md

File metadata and controls

11 lines (9 loc) · 193 Bytes

Replace wildcard (*) character in text with PowerShell

# I need to remove that star
$MyID = "AROA12334566778890:*"
$MyID = $MyID -replace ":\*",""

# output
$MyID
AROA12334566778890