Showing results for RegEx - Scripting Blog [archived]

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

Scripting Guy!Windows PowerShellPowerTip
Nov 7, 2015
0
0

PowerTip: Replace Non-Alphabetic Characters in String

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to replace non-alphabetic characters in a string. How can I use Windows PowerShell to replace a string that contains non-alphabetic characters            (such as commas and periods)? Use the –Replace operator, and specify a regex pattern '[^a-zA-Z]', for ...

Scripting Guy!Windows PowerShellPowerTip
Nov 7, 2015
0
0

Weekend Scripter: Exploring Palindrome Sentences with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about identifying palindromes that are more than a single word.Microsoft Scripting Guy, Ed Wilson, is here. One of the coolest things about palindromes is that they can be formed with sentences. It is also what makes them the most subtle. For example, whereas it is pretty obvious that mom, dad, and...

Scripting Guy!Windows PowerShellWeekend Scripter
Aug 18, 2014
0
0

PowerShell Mini-Scripting Games 2014: Answer 1

Doctor Scripto
Doctor Scripto

Summary: Here is the answer to Problem 1 in Windows PowerShell Mini-Scripting Games 2014. Microsoft Scripting Guy, Ed Wilson, is here. Here is an answer to Problem 1 in Windows PowerShell Mini-Scripting Games 2014. Last week, I posted the complete Problem 1 description and task outline. Problem one synopsis You are reading a CSV file that was ...

Scripting Guy!Windows PowerShellscripting techniques

Feedback