Learn your way! Get started

Perl, Part 3: Regular Expressions and Routines

with expert Chris Penick


Watch trailer

Perl, Part 3: Regular Expressions and Routines Trailer

Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack
  • Power Pack Plus

Release date Release date 4/4/2016
Level Level Beginner
Runtime Runtime 1h 30m
Closed captioning Closed captioning Included
Transcript Transcript Included
eBooks / courseware eBooks / courseware N/A
Hands-on labs Hands-on labs N/A
Sample code Sample code Included
Exams Exams Included


Enterprise Solutions
Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

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.

Prerequisites

This is an entry level course. Some amount of programming experience will be helpful and speed up your learning but you can jump right into this course at any level.

Learning Paths

This course is part of the following LearnNowOnline SuccessPaths™:
PERL Development

Meet the expert

Chris Penick Chris Penick is CISSP certified and has been a consultant and CISSP trainer in the technology industry for the past 20 years. During that time, he has worked as Principal Learning Consultant for Symantec, webmaster for the FDA, cyber-warfare scenario developer, technical investigator and forensic analyst for a private security firm. His past government clients include all branches of the United States Military, the Department of Commerce, the IRS, the U.S. Custom and Immigration Service, the Executive Office of the President, and state and local governments in Maryland, Michigan, Virginia, and the District of Columbia. His corporate clients include Guess, Inc., EMC, Raytheon, Lockheed Martin, and the Discovery Channel.


Course outline



Subroutines and Regex

Subroutines (07:43)
  • Introduction (00:18)
  • The undef Value (00:59)
  • Detecting undef (00:58)
  • Define a Subroutine (01:26)
  • Invoke a Subroutine (00:27)
  • Return Values (00:47)
  • Demo: Subroutines (02:33)
  • Summary (00:12)
Arguments and Return Values (18:47)
  • Introduction (00:19)
  • Arguments (02:50)
  • Private Subroutine Variables (01:45)
  • Variable Argument Lists (02:16)
  • Using My (01:22)
  • Use Strict (01:21)
  • Return Values (01:11)
  • Demo: Arguments (02:39)
  • Demo: Return (04:39)
  • Summary (00:22)
Simple Regular Expressions (13:01)
  • Introduction (00:18)
  • Regular Expressions (02:12)
  • A Simple Pattern (00:52)
  • Match Binding Operator (01:49)
  • The Match Operator (01:14)
  • Demo: Simple Pattern (03:21)
  • Demo: Match Bind Operator (03:00)
  • Summary (00:12)
Metacharacters (28:19)
  • Introduction (00:17)
  • Regular Expression Types (00:58)
  • Match Position (00:30)
  • Match a Set of Characters (00:54)
  • Ranges of Regular Expressions (00:47)
  • Ranges of Digits (00:09)
  • Negating Ranges (02:06)
  • Dot Metacharacter (01:02)
  • Literal Metacharacters (01:25)
  • Patterns Provided in Perl (02:19)
  • Pipe Alternatives (02:07)
  • Question Mark Quantifier (00:55)
  • Asterisk Quantifier (02:55)
  • Plus Quantifier (00:27)
  • Demo: Regex (04:27)
  • Demo: Regex Patterns (06:37)
  • Summary (00:16)
Text Manipulations (22:28)
  • Introduction (00:17)
  • Substituting Text (01:07)
  • Special Match Variables (01:00)
  • Capture Groups (03:14)
  • Global Modifier (01:23)
  • Demo: Substitution (04:30)
  • Demo: Greedy Substitution (04:47)
  • Demo: Before and After (05:53)
  • Summary (00:13)