Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering Windows PowerShell Scripting
  • Table Of Contents Toc
Mastering Windows PowerShell Scripting

Mastering Windows PowerShell Scripting

By : Brenton J.W. Blawat
4.4 (16)
close
close
Mastering Windows PowerShell Scripting

Mastering Windows PowerShell Scripting

4.4 (16)
By: Brenton J.W. Blawat

Overview of this book

If you are a system administrator who wants to become an expert in controlling and automating your Windows environment, then this book is for you. Prior knowledge of PowerShell's core elements and applications is required for this book.
Table of Contents (16 chapters)
close
close
15
Index

Getting started with regular expressions

In the most basic form, regular expressions are used to match a specific set of characters contained in a string. To use regular expressions in PowerShell, you need to leverage the –match, –notmatch, and –replace operators in conjunction with an expression. The proper syntax for the comparison operators is referencing a variable or string, followed by the –match, –notmatch, or –replace operator and then the expression you want to evaluate. If the comparison operator is –match or –notmatch, the expression will return either True or False. If you use the –replace operator, the expression will return the string or variable with the replaced values.

Tip

By default, PowerShell's –match operator is case-insensitive. This means it will return $True if the letter exists. To fully leverage the regular expression's case sensitivity, use –cmatch. The –cmatch operator...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering Windows PowerShell Scripting
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon