Book Image

Mastering Windows PowerShell Scripting

By : Brenton J.W. Blawat
Book Image

Mastering Windows PowerShell Scripting

By: Brenton J.W. Blawat

Overview of this book

Table of Contents (22 chapters)
Mastering Windows PowerShell Scripting
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Regular expression grouping constructs and ranges


A regular expression grouping construct is similar to what a parenthetical statement is to math operations. Group constructs bind expressions together to evaluate specific information in a specific order. The bracket [ ] grouping construct groups evaluation criteria together for evaluation. The regular expression will consider all data in the group [ ] for matching to remain True.

The parentheses grouping constructs in regular expressions are used to group commands together to determine the order of processing. Similar to other programming languages, equations in the parentheses are evaluated first before the rest of the expression. The parentheses grouping constructs can also be used with the OR alternation construct. The content will be evaluated as this OR that. The ( ) operator is used with the pipe | to designates multiple OR operations. The proper syntax would be (this|that) to designate this OR that.

Regular expression ranges are a way...