Regex: Why and How
Exit Slideshow


Regex: Why and How
Why
Get me all the IP addresses on this computer, NOW!
Write me a program to switch colon delimited fields, NOW!
Write me a program to strip comments, NOW!
Please extract all phone numbers from this file, NOW!

Please convert everything in outline.otl to title case, NOW!
HOW
Anatomy of a Regex
Literals
Special Character Literals

Enumerators
Enumerator shortcuts
Wildcard overview
Wildcard Sets
Standard Wildcard shortcuts
Posix Wildcard Sets
Posix Wildcard Set Example
Positionals
Alternatives
Uses for Groups
Anatomy of a group
Using Groups to Find and Use Substrings

Using Groups for Repeating Wildcard Strings

Greedy Matching

Vim Regex

Bash Regex

Perl Regex
Python Regex
C Regex
Summary
Copyright (C) 2001, 2005 by Steve Litt, you can freely distribute unmodified copies if this copyright notice and disclaimer are intact.  This material originally appeared on Troubleshooters.Com.

This presentation has no warranty, express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the presentation is with you. Neither the author nor those who show the slideshow are responsible for any damage caused by errors, omissions, or anything else relating to this slideshow.
 

Exit Slideshow