Course Code: 5474

Regular Expressions - Introduction

Class Dates:
1 Days
Class Time:
Instructor-Led Training, Virtual Instructor-Led Training


  • Course Overview
  • Regular expressions are a powerful tool that can help you to find, replace and format text quickly, but they have a reputation of being extremely hard to understand. In this Regular Expressions training course, this course de-mystifies the sometimes confusing and always-difficult world of Regular Expressions, putting a very powerful tool right at your fingertips.

    You will learn how to create Regular Expressions step-by-step, removing the mystery of what the characters represent and how they work together. This training video uses real world scenarios as examples to help re-enforce the lessons. Mike shows you how to validate dates, phone numbers, URLs and emails, as well as how to search for, and correct misspelled words or other content. You will explore how to implement Regular Expressions in PHP, Java, C# and JavaScript.
  • Audience
  • •Web Developers


Course Details

  • What is a Regular Expression
  • Getting Started with Regexpal
  • Matching a North American Phone Number
  • Matching Digits with a Character Class
  • Using a Character Shorthand
  • Matching Any Character
  • Capturing Groups and Back References
  • Using Quantifiers
  • Quoting Literals
  • A Sample of Applications
  • Simple Pattern Matching
  • Matching String Literals
  • Matching Digits
  • Matching Non-Digits
  • Matching Word and Non-Word Characters
  • Matching Whitespace
  • Matching Any Character, Once Again
  • Matching Up the Text
  • Using sed to Mark Up Text
  • Using Perl to Mark Up Text
  • Boundaries
  • The Beginning and End of a Line
  • Word and Non-Word Boundaries
  • Other Anchors
  • Quoting a Group of Characters as Literals
  • Adding Tags
  • Adding tags with sed
  • Adding Tags with Perl
  • Alternation, Groups, and Backreferences
  • Alternation
  • Subpatters
  • Capturing Groups and Backreferences
  • Named Groups
  • Non-Capturing Groups
  • Automic Groups
  • Character Classes
  • Negated Character Classes
  • Union and Difference
  • POSIX Character Classes
  • Matching Unicode and Other Characters
  • Matching a Unicode Character
  • Using vim
  • Matching Characters with Octal Numbers
  • Matiching Unicode Character Properties
  • Matching Control Characters
  • Qantifiers
  • Greedy, Lazy, and Possessive
  • Matching with *,+, and ?
  • Matching a Specific Number of Times
  • Lazy Quantifies
  • Possessive Quantifiers
  • Lookarounds
  • Positive Lookaheads
  • Negative Lookaheads
  • Positive Lookbehinds
  • Negative Lookbehinds
  • Marking Up a Document with HTML
  • Matching Tags
  • Transforming Plan Text with sed
  • Substitution with sed
  • Handling Roman Numbers with sed
  • Handling a Specific Paragraph with sed
  • Handling the Lines of the Poem with sed
  • Appending Tags - Using a Comand File with sed
  • Transforming Plan Text with Perl
  • Handling Roman Numbers with Perl
  • Handling a Specific Paragraph with Perl
  • Handling the Lines of the Poem with Perl
  • Using a File of Commands with Perl
  • The End of the Beginning
  • Learning More
  • Notable Tools, Implementations, and Libraries
  • Perl
  • PCRE
  • Ruby
  • Python
  • RE2
  • Matching a North American Phone Number
  • Matching an Email Address