Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PowerShell Regular Expressions: Regex Master Class
Rating: 4.0 out of 5(93 ratings)
25,005 students

PowerShell Regular Expressions: Regex Master Class

Learn All About PowerShell Regular Expressions and use PowerShell Regex like experts
Created byLuxmi Narayan
Last updated 8/2024
English
English [Auto],

What you'll learn

  • What are PowerShell Regular Expressions
  • What are different types of PowerShell Regex
  • How to use PowerShell regex in an efficient way
  • Detailed understanding about PowerShell Regex

Course content

1 section12 lectures1h 30m total length
  • What Are PowerShell Regular Expressions10:20

    Explore how PowerShell regular expressions match patterns in text, search and replace data, and extract mail IDs from logs using dotnet regular expressions.

  • Requesting your Feedback0:56

    Encourage learners to rate and review the course using the top right corner, express appreciation as inspiration, and promise a personal reply to ratings to improve the course daily.

  • Different Types Of Regex Characters & Reference Sheet4:25

    Explore different types of regular expressions in PowerShell, including character classes, quantifiers, anchors, and escaping reserved characters, with a reference sheet to guide you.

  • Where do we use Regex in PowerShell12:05

    Learn where regex applies in PowerShell, including match, replace, split, and select string command, plus a regex-based switch. See patterns like server-01 and digit checks to extract and transform text.

  • PowerShell - Regular Expression - Character Classes - Part_19:47

    Master PowerShell regular expressions by exploring character classes, including literal matches, the dot, lowercase w with underscore, digits, and uppercase opposites, with demos and the $matches variable.

  • PowerShell - Regular Expression - Character Classes - Part_29:39

    Master PowerShell regular expressions by using whitespace and non-whitespace with \s and \S. Build and combine character classes, ranges, and negation, and apply the pipe operator for alternation.

  • PowerShell - Regular Expression - Quantifiers - Part_19:17

    Explore how PowerShell regular expressions use quantifiers to match zero or more and one or more occurrences, with examples of alphanumeric characters, server-name patterns, and digits.

  • PowerShell - Regular Expression - Quantifiers - Part_28:54

    Learn PowerShell regex quantifiers by building patterns with optional hyphens and digits, using the question mark for optional elements and {n}, {n,}, {n,m} to enforce counts on server name examples.

  • PowerShell - Regular Expression - Anchors3:31

    PowerShell regular expression anchors show how the caret matches the beginning of input and the dollar sign matches the end, with log-file examples of lines starting or ending with text.

  • PowerShell - Regular Expression - Escaping Characters4:21

    Escape regex characters in PowerShell to treat reserved symbols as literals. Learn to build a pattern with literal dots by using backslash escapes, matching a digit-dot-digit structure.

  • Using Select String To find Matches - Part_19:04

    Learn how to use select-string to search input text or files for patterns. See default outputs and how to tailor results with case sensitivity and simple versus regex matching.

  • Using Select String To find Matches - Part_28:22

    Learn to count all matches with PowerShell's select-string by enabling allmatches. Store results in a variable and extract patterns such as mail IDs from text and log files.

  • Let's test our learning

Requirements

  • Basic Understanding of PowerShell

Description

If You want to Master PowerShell Regular Expressions (Regex), Then this course is for you.

If your want to unlock the power of regular expressions? Look no further! In this course, we dive into the fascinating world of regex and explore how it can supercharge your PowerShell scripting.

In this Course, you will learn:

  • Fundamentals of regular expressions: Understand the syntax, metacharacters, and quantifiers used in regex patterns.

  • Pattern matching techniques: Learn how to construct regex patterns to match specific text patterns, including literal strings, character classes, and anchors.

  • Capturing and grouping: Explore advanced regex features such as capturing groups and backreferences to extract and manipulate data from complex text strings.

  • Regex in PowerShell scripting: Integrate regular expressions seamlessly into your PowerShell scripts to automate text processing tasks, file manipulation, and data extraction.

  • Best practices and optimization: Discover tips and techniques for writing efficient and maintainable regex patterns, avoiding common pitfalls, and optimizing performance.

By the end of this course, you'll have the skills and confidence to wield regular expressions like a seasoned PowerShell pro, enabling you to tackle a wide range of text processing challenges with ease and efficiency. Whether you're parsing log files, extracting information from documents, or transforming text data, mastering PowerShell regular expressions will empower you to take your automation capabilities to the next level.

Who this course is for:

  • Learners who want to learn PowerShell Regular Expressions to make efficient PowerShell Scripts and want to make their professional life easy