Showing results for regular expressions - Scripting Blog [archived]

Dec 6, 2014
1
0

Weekend Scripter: Remove Non-Alphabetic Characters from String

Doctor Scripto
Doctor Scripto

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to remove all non-alphabetic characters from a string. Microsoft Scripting Guy, Ed Wilson, is here. This morning I am drinking a nice up of English Breakfast tea and munching on a Biscotti. I know...Biscotti is not a very good breakfast. Oh well. I went to my favorite...

Scripting Guy!Windows PowerShellscripting techniques
Oct 21, 2014
0
0

PowerTip: Replace Characters in String that Is Not Part of Group

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to replace all characters in a string that is not part of a group. How can I use Windows PowerShell to remove all the non-alphabetic characters in the following string?           (The single quotation marks are not part of the string.)'({Abcde})' Create a regular expression pat...

Scripting Guy!Windows PowerShellscripting techniques
Oct 16, 2014
0
0

PowerTip: Use PowerShell to Remove Characters in a String

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to remove specific characters in a string. I have a string that includes braces:$a = '{Abcde}'   I want to remove the braces, but keep the text string inside the braces.    How can I do this by using Windows PowerShell? Use the –Replace operator, create a reg...

Scripting Guy!Windows PowerShellscripting techniques
Dec 4, 2011
0
0

Use PowerShell to Move Computers Based on IP Addresses: Part 2

Doctor Scripto
Doctor Scripto

Summary: In this blog, Eric Wright revises his script by using Active Directory cmdlets to move computers that are organized in Active Directory, based on their IP addresses. Microsoft Scripting Guy, Ed Wilson, is here. In today’s post, guest blogger, Eric Wright, reprises yesterday’s post to use the Windows Active Directory module cmdl...

Scripting Guy!Windows PowerShellscripting techniques
Dec 3, 2011
0
0

Use PowerShell to Move Computers Based on IP Addresses: Part 1

Doctor Scripto
Doctor Scripto

Summary: In this guest blog post written by Eric Wright, you will learn how to use the Windows PowerShell snap-in, Quest ActiveRoles, to move computers that are organized in Active Directory, based on their IP addresses. Microsoft Scripting Guy, Ed Wilson, is here. Guest Blogger Weekend continues. Today we have a guest blog written by Eric Wright. ...

Scripting Guy!Windows PowerShellscripting techniques