Showing results for Regular Expressions - Scripting Blog [archived]

Oct 14, 2016
0
1

PowerShell regex crash course – Part 3 of 5

Doctor Scripto
Doctor Scripto

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

Windows PowerShellguest bloggerThomas Rayner
Oct 7, 2016
0
0

PowerTip: How to detect phone numbers using regular expressions

Doctor Scripto
Doctor Scripto

Summary: Cloud and Datacenter Management MVP, Thomas Rayner, shows how to use regex to detect if a string is a phone number. I have an array like , and I need to know which array items are phone numbers. How can I do this? You can compare each item in the array with all its non-digit characters removed and see if that matches your requirements f...

Windows PowerShellPowerTipguest blogger
Oct 7, 2016
0
1

PowerShell regex crash course – Part 2 of 5

Doctor Scripto
Doctor Scripto

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, workingsysadmin...

Windows PowerShellguest bloggerThomas Rayner
Apr 15, 2016
0
0

PowerTip: Use a regular expression pattern to remove nonalphabetic characters

Doctor Scripto
Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip