Рет қаралды 4,260
Regular expressions provide a feature called "named captures" that allow you to assign custom names to your match groups. Using named captures helps improve the readability of your code, versus using the index number to refer to regular expression capture groups. We'll explore how you can leverage this feature in your PowerShell scripts.
Additionally, we will also demonstrate how you can perform multiple regular expression matches inside of your text blocks, by leveraging the [regex] type accelerator and the .Matches() method on the regular expression .NET object.
Producer: Trevor Sullivan
Website: trevorsullivan...
Patreon: / trevorsullivan
Twitter: / pcgeek86
Gab: gab.ai/trevors
Intro music "Amen Tune" used, with permission, from Aaron Static. Check out his music here: / aaronstatic
#Microsoft #PowerShell #automation