LinuxCBT RegEx Edition focuses on the application of POSIX and Perl-compatible Regular Expressions.
Regular Expressions are critical to efficiently parsing textual data (log file content, data feeds, files & directories, etc.). RegEx support is included with Linux | Unix operating systems via ubiquitous tools such as: grep, awk, sed, Perl, PHP, etc., and provides systems administrator/engineers and developers alike, the ability search, time-effectively, considerable amounts of textual data, using literals, character classes, metacharacters, metasequences, etc.
Let LinuxCBT RegEx Edition cost-effectively teach you Regular Expressions!
Recommended Prerequisites for:
- Any LinuxCBT Operating System Course (Classic/EL-4/SUSE/Debian Editions)
- Open mind & determination to master Linux and related open-source applications
- Basic understanding of networking concepts
- Access to a Linux system to follow the exercises

LinuxCBT Scripting Editon - RegEx - Module 5
- Introduction - Features
- Discuss course outline
- Explore system configuration
- Identify key systems
to be used
- Install the Bluefish graphical editor - Supports POSIX and PERL-compatible RegExes
- List key Regular Expressions applications
- Enumerate and discuss key Regular Expressions features
- Metacharacters
- Enumerate important metacharacters
- Provide examples of asterisk '*' usage
- Apply simple character classes
to searches
- Perform searches in the Bluefish editor using
literals and metacharacters
- Explain and apply anchors: '^', '$'
- Character Classes
- Discuss features and applications
- Perform searches in the Bluefish editor using character classes
- Search for case-insensitive characters
- Negate character class values using the circumflex character: '^'
- Specify ranges and inclusions
- Search for string boundaries
- Alternate between POSIX and Perl-compatible Regular Expressions in Bluefish Editor
- RegExes with GREP & EGREP
- Discuss features
and applications
- Perform simple GREP searches
- Use EGREP to find strings based on RegExes
- Parse installed applications using EGREP
- Extract 'su' attempts from the system log file: /var/log/messages
- Parse log file entries based on specific dates
- Parenthetical Expressions
- Discuss features and applications
- Compare and contrast with character classes
- Search for strings using the Bluefish Editor
- Combine anchors with parenthesis
and evaluate results
- Search for multiple groups of strings using alternation
- Use parenthetical expressions with EGREP
- Nest expressions using parenthesis
- Quantifiers
- Discuss features and benefits
- Define RegEx tokens
- Enumerate and discuss RegEx quantifiers
- Test '?' using the Bluefish Editor and EGREP
- Test '*' using the Bluefish Editor and EGREP
- Test '+' using the Bluefish Editor and EGREP
- Test '*' using the Bluefish Editor and EGREP
- Test '{ }' - arbitrary quantifiers with the Bluefish Editor and EGREP
- Combine anchors, parenthesis and various quantifiers
- Shortcut Sequences
- POSIX & Perl
- Discuss features and benefits
- Enumerate and discuss key shortcut sequences
- Test shortcut sequences using the Bluefish Editor
- Awk - Field Parser
- Discuss features and applications
- Use awk to extract fields from the process listing
- Apply RegEx literal strings to awk search
and evaluate results
- Apply RegEx character classes to awk search and evaluate results
- Apply RegEx parenthetical expressions to awk search and evaluate results
- Apply RegEx quantifiers to awk search and evaluate results
- Incorporate conditional RegEx matching with awk search and evaluate results
- Extract fields, based on RegExes, from system log file: /var/log/messages
- SED - Stream Editor
- Discuss features and applications
- Perform text transformation of text file
using string literals
- Perform text transformation of text file using string literals
and character classes
- Perform text transformation of text file using string literals and anchors
- Perform text transformation of text file using string literals and character classes
- Evaluate results
- GNU Utilities (GREP|Awk|SED) for Windows
- Discuss features
and benefits
- Identify and connect to Windows Server target system
- Download and install GNU utilities for Windows: GREP, Awk, SED
- Perform EGREP searches and evaluate results
- Perform gawk searches and evaluate results
- Perform SED substitutions and evaluate results
- Perl Regular Expressions
- Discuss features and applications
- Write simple Perl script to compare command line argument to RegEx and evaluate results
- Alter Perl script to read text file and perform RegEx comparisons
and evaluate results
- Incorporate character classes, parenthetical expressions, case-insensitivity and quantifiers
- Evaluate results
- Substitute matched text using Perl RegExes
- Substitute matched text using Perl RegExes from the command line
- Update system log using text substitution from the command line
- PHP Regular Expressions
- Discuss features and applications
- Perform POSIX and Perl-compatible RegExes
from the command line
- Substitute text using RegExes
- Evaluate results
- Design HTML form to collect fields via the browser
- Design back-end, action script to process the POST fields using RegExes
- Halt processing if POST fields do NOT meed criteria based on RegExes
- Evaluate results
- Apache Regular Expressions
- Discuss features and benefits
- Identify key configuration files
- Explore key RegEx-supporting Apache directives
- Match a range of directories using RegExes with <DirectoryMatch> directive
- Restrict access to files using RegExes with <FilesMatch> directive
- Match URL directory values using RegExes with <AliasMatch> directive
- Redirect users to alternate content using RegExes with <RedirectMatch> directive
- top
|