Overview
Regular expressions are sets of characters that define a search pattern. Regular expressions are often used for creating algorithms to find, find and replace, or validate input.
This instructor-led, live training (online or onsite) is aimed at web developers who wish to use regular expressions to create robust algorithms for defining search patterns.
By the end of this training, participants will be able to:
- Apply regular expression techniques to any regex engine like PHP, Python, etc.
- Write complex search patterns using character sets.
- Script automation into a system process using extended regular expressions.
Format of the Course
- Interactive lecture and discussion.
- Lots of exercises and practice.
- Hands-on implementation in a live-lab environment.
Course Customization Options
- To request a customized training for this course, please contact us to arrange.
Requirements
- A basic understanding of BASH.
Audience
- Web Developers
Course Outline
Introduction
Regular Expressions in Depth
- What are regular expressions?
- Regex engines
- Basic vs extended regular expressions
Preparing the Development Environment
- Installing and configuring a regex engine
Characters and Character Sets
- Working with literals, metacharacters, and special characters
- Escaping metacharcters
- Creating a character set
- Using character ranges and metacharacters
- Creating shorthand and negative character sets
Repetition, Grouping, Alternation, and Anchors
- Working with greedy and lazy expressions
- Grouping metacharacters
- Using alternation
- Working with staring and ending anchors
Shell Globs
- Using character sets, character classes, and wildcards
- Pattern matching
- Using extended globs with commands
- Using brace expansion
BASH Extended Regular Expressions
- Working with regular expressions in conditionals
- Using regular expressions with grep
- Using extended regular expression in sed
- Using regular expressions in AWK
Summary and Conclusion