Perl (Part 3 of 3): Regular Expressions and Routines
Interactive

Perl (Part 3 of 3): Regular Expressions and Routines

Biz Library
Updated Feb 04, 2020

This course will dive deep on the string of characters known as regular expressions, which are used to define patterns in Perl. Perl expert Chris Penick will make you a regular expression guru by teaching you how to master the syntax of regular expressions. He’ll also show you other ways to make Perl work for you by explaining how to invoke subroutines in Perl and use other tools to find, select, extract, change, and save data.


Lesson 1:

  • The undef Value
  • Detecting undef
  • Define a Subroutine
  • Invoke a Subroutine
  • Return Values
  • Demo: Subroutines.

Lesson 2:

  • Arguments
  • Private Subroutine Variables
  • Variable Argument Lists
  • Using My
  • Use Strict
  • Return Values
  • Demo: Arguments
  • Demo: Return.

Lesson 3:

  • Regular Expressions
  • A Simple Pattern
  • Match Binding Operator
  • The Match Operator
  • Demo: Simple Pattern
  • Demo: Match Bind Operator.

Lesson 4:

  • Regular Expression Types
  • Match Position
  • Match a Set of Characters
  • Ranges of Regular Expressions
  • Ranges of Digits
  • Negating Ranges
  • Dot Metacharacter
  • Literal Metacharacters
  • Patterns Provided in Perl
  • Pipe Alternatives
  • Question Mark Quantifier
  • Asterisk Quantifier
  • Plus Quantifier
  • Demo: Regex
  • Demo: Regex Patterns.

Lesson 5:

  • Substituting Text
  • Special Match Variables
  • Capture Groups
  • Global Modifier
  • Demo: Substitution
  • Demo: Greedy Substitution
  • Demo: Before and After.