2018 Python Regular Expressions, Projects and Solutions
4.3 (299 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,952 students enrolled

2018 Python Regular Expressions, Projects and Solutions

Learn Cutting Edge Pattern Matching Skills for Log Mining, Big Data Parsing, Cleanup and Preparation with Regex
4.3 (299 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,952 students enrolled
Created by Chandra Lingam
Last updated 5/2018
Current price: $11.99 Original price: $99.99 Discount: 88% off
2 days left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3 hours on-demand video
  • 16 articles
  • 11 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to Udemy's top 3,000+ courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Confidently use regular expression as a powerful text processing tool
  • Minimize effort spent on custom development for data cleanup

  • Gain practical tips with hands-on projects

  • Understand potential performance issues and techniques to address them
Course content
Expand all 58 lectures 03:18:44
+ Introduction
2 lectures 10:19

Where can you use regular expressions?  Class structure overview and teaching methodology

Preview 02:18


Housekeeping videos with new instructions and resources

+ Regular Expression Usage Demo
8 lectures 22:58

Slide deck used for this section is available for download as part of resources for this article.

Downloadable Resources

iPython Notebook Overview and run course notebook files

iPython Notebook and Solution Testing

Regular Expression Terminology used in this course

Coding tips to correctly handle patterns using raw strings

Terminology and Coding Tips

Shows different ways in which you can find a match for pattern in text

Find the First Match

How do get all matches for a pattern.  Different ways of retrieving the matches

Find all Matches

How to break a pattern into sub-patterns using Groups.  How are groups beneficial

Preview 02:36

Shows different ways of doing a find-replace capability using patterns and custom replacement logic

Find and Replace Text

Shows how to split a text using patterns

Split Text, Raw String, Summary
Regular Expression Usage Quiz
6 questions
+ Regular Expression Interactive Tool
1 lecture 09:10

Shows how to open, launch and use interactive regular expression tool that comes with this course.  This tool is written in Python and uses Qt.

Preview 09:10
+ Regular Expression Language Overview
7 lectures 35:19
Downloadable Resources

Single Character Pattern, Sets, Range, Multi-Range, Wildcard, Escape and Control Characters

Single Character Pattern, Sets, Range, Multi-Range, Wildcard, Escape and Control
Singe Character Pattern Quiz
3 questions

How to provide instructions to regular expression engine to fine tune criteria for matching

Anchor Quiz
2 questions

How to write concise patterns using ready-made shortcuts known as character classes

Character Classes

How to specify repetition, upper and lower bounds, optional experssions

Quantifiers - Optional, Frequency of Occurrence
Quantifiers Quiz
1 question
Regular Expression Language Quiz 1
5 questions
Regular Expression Language Quiz 2
5 questions

How to insert comments inside a regular expression pattern


If..Then...else style branching in regular expression

Conditional Expression
+ Regular Expression Engine - Five Key Points
15 lectures 58:35
Downloadable Resources

Regular Expression Engine Overview

Regular Expression Engine Introduction

How Engine works internally to find a match

1. One Character at time

What order does Engine use to find a match

2. Left to Right
Left to Right Quiz
2 questions

What order does Engine use to find a match

2.1 Left to Right - One more example


Demo - Left to Right

How does engine handle quantifiers?  What does Greedy, Lazy and Back Tracking mean?

Greedy Example

3. Greedy, Lazy and Backtracking
Greedy Quiz
1 question

Lazy concept, example and demo

3.1 Lazy

How does engine perform exhaustive search to find the right match?

3.2 Exhaustive

Greedy hands-on demo

Demo - Greedy

Groups - What is it? How can you use it? Different types of groups

4. Groups - Indexed, Named, Non Capturing
Group Quiz
3 questions

How to refer back to a match inside the same pattern?  How to replace a matching text?

4.1 Groups - Back-reference, Substitution

What are look ahead and look behind? Where are they used and what capability does it provide

5. Look-Ahead and Look-Behind

Go forward only if certain pre-condition is met

5.1 Positive and Negative Look-Ahead

Go forward only if certain pre-condition is met before the current character

5.2 Positive and Negative Look-Behind
+ Project 1 - Robocopy Log File Parsing with Regular Expression
6 lectures 15:02

Overview of the project, how robocopy log is structured, what information is the solution going to extract

Overview and Scope
Pattern to Identify Header
Pattern to Capture Error Message
Pattern to Capture Metrics Table
Verify Patterns

Strategy for solving the problem with regular expression, review of the solution and demo

Solution and Demo
+ Regular Expression Performance
7 lectures 22:19
Downloadable Resources

What type of patterns to watch for performance issues

Introduction - Patterns Exhibiting Exponential Run Time

Why is the performance degrading?  What is happening behind the scenes?

Root Cause

Various options for addressing the performance issue

How to fix performance issues?

Hands-on overview of all the concepts, solution with demo

Demo - Performance issue and fix

What is the difference between compiled regular expression objects and module methods?  When to use compiled objects?

Compiled Versus Module Regular Expression Methods

Demo of comparison between module and compiled object methods

Demo - Module Methods and Compiled Methods Performance
+ Project 2 - Intelligent Sensor Data Handling with Regular Expression
4 lectures 11:34

Introduction to sensors and how they collect and store data

Pattern to Identify Header
Pattern to Capture Data Pairs

How to use regular expression to extract the data and convert to JSON. Solution walk-through and demo

Solution and Demo
+ Project 3 - Health Care Electronic Medical Record
5 lectures 08:55

In this project, we will use regular expression to extract information from hospital medical report files sent as HTML payload

Pattern for Data Cleanup/Preparation
Pattern for Matching Row
Pattern for Matching Cells
+ Project 4 - Network Configuration Parser
1 lecture 00:03
Network Configuration Parser Problem
  • All material and software instructions are covered in house keeping lecture.
  • Familiarity with a Programming Language

Welcome to Python Regular Expressions Course!

In just a couple of hours, you will master regular expression language and learn internals of the regular expression engine

You will apply your new skills with four hands-on real-world projects

You will gain solid understanding on type of performance issues regex can run into, and techniques to address them

As part of resources in this course, you will get a high-quality quick reference guide, an interactive tool, all the source code and downloadable slides

Why Learn Regular Expressions?

Very often, the data that we need is not readily accessible or useful. 

Data preparation and clean-up is often one of the most time-consuming activities in a software automation project. 

Instead of spending time writing code for all this, you can specify data patterns of interest and let regular expression engine do the work for you

Regular Expression is cross-platform and you can learn the concepts once and use it in multiple programming languages and environment

Looking forward to seeing you in the course!

God Speed!

Who this course is for:
  • Data Scientists, Software Engineers and Developers