Showing results for regular expressions - Scripting Blog [archived]

Aug 14, 2018
1
2

Regular Expressions (REGEX): Grouping & [RegEx]

Kory Thacher
Kory Thacher

Welcome back to the RegEx crash course. Last time we talked about the basic symbols we plan to use as our foundation. This week, we will be learning a new way to leverage our patterns for data extraction and how to rip our extracted data into pieces we care about. [RegEx] The  data type has some cool static members,  but we're mostly going to ...

PowerShellregular expressionskoryt
Jul 31, 2018
0
2

Regular Expressions (REGEX): Basic symbols

Kory Thacher
Kory Thacher

Welcome back to the RegEx guide. Last post we talked a little bit about the basics of RegEx and its uses. I mentioned the most important thing is to understand the symbols. Today we'll ease in with some of the basics to get us going, but later we will expand on these and see some other options we have.  is used to represent any single character...

PowerShellregular expressionskoryt
Jul 5, 2018
0
0

Regular Expressions (REGEX): Introduction

Kory Thacher
Kory Thacher

Hi all, this week I'll be talking about Regular Expressions. I've got a few posts planned to get you set up and going with some basic Regex. Regex is used for extracting and validating data. Essentially, you can think of Regex as windows wild cards on steroids. Anytime we need to match data with a little more clarity than the *s and ?s that ...

PowerShellregular expressionskoryt
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
Dec 6, 2014
0
0

PowerTip: Use PowerShell to Replace Characters in String

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to replace non-alphabetic and non-number characters in a string.  How can I use Windows PowerShell to replace every non-alphabetic and non-number character in a string            with a hyphen?  Use the Windows PowerShell –Replace operator and the \w&...

Scripting Guy!Windows PowerShellPowerTip