Regular Expressions - Introduction
CLASS DATE(s):
Request a Class

COURSE LENGTH: 1 Day

COURSE COST: $495.00

COURSE TIMES: 9:00am - 4:30pm

Printable version of this course
print

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 AND PREREQUISITES

•Web Developers
•Programmers

  

*Course cost listed does not include the cost of courseware (required) or lunch (optional). Please contact us at learn@vtec.org or 207-775-0244 for additional pricing information, or if you have any questions. Course subject is to minimum enrollment. This course may run as a Virtual Live Distance Learning Class if minimum enrollment is not met.

COURSE TOPICS:


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