Scripting Blog [archived]

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

PowerShell regex crash course – Part 2 of 5

Summary: Thomas Rayner, Microsoft Cloud and Datacenter Management MVP, shows the basics of working with regular expressions in PowerShell. Hello! I’m Thomas Rayner, a proud Cloud and Datacenter Management Microsoft MVP, filling in for The Scripting Guy! this week. You can find me on Twitter (@MrThomasRayner), or posting on my 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 ...