Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Use a regular expression pattern to remove nonalphabetic characters

Summary: Learn how to use a regular expression pattern to remove non-alphabetic characters from a string by using Windows PowerShell. (image)  How can I use Windows PowerShell to remove non-alphabetic characters from a string? (image)  To remove nonalphabetic characters from a string, you can use the -Replace operator and substitute an ...