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
English
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

***NEW***

Housekeeping videos with new instructions and resources

Housekeeping
08:01
+ 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
00:04

iPython Notebook Overview and run course notebook files

iPython Notebook and Solution Testing
03:15

Regular Expression Terminology used in this course

Coding tips to correctly handle patterns using raw strings

Terminology and Coding Tips
04:08

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

Find the First Match
04:58

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

Find all Matches
02:12

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
03:03

Shows how to split a text using patterns

Split Text, Raw String, Summary
02:42
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
00:03

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

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

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

Anchors
06:10
Anchor Quiz
2 questions

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

Character Classes
05:04

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

Quantifiers - Optional, Frequency of Occurrence
06:45
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

Comments
02:09

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

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

Regular Expression Engine Overview

Regular Expression Engine Introduction
02:25

How Engine works internally to find a match

1. One Character at time
03:48

What order does Engine use to find a match

2. Left to Right
03:51
Left to Right Quiz
2 questions

What order does Engine use to find a match

2.1 Left to Right - One more example
04:13

Demo

Demo - Left to Right
02:48

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

Greedy Example

3. Greedy, Lazy and Backtracking
05:57
Greedy Quiz
1 question

Lazy concept, example and demo

3.1 Lazy
04:23

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

3.2 Exhaustive
03:51

Greedy hands-on demo

Demo - Greedy
02:46

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

4. Groups - Indexed, Named, Non Capturing
06:27
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
02:49

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

5. Look-Ahead and Look-Behind
02:45

Go forward only if certain pre-condition is met

5.1 Positive and Negative Look-Ahead
07:22

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

5.2 Positive and Negative Look-Behind
05:06
+ 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
03:18
Pattern to Identify Header
00:28
Pattern to Capture Error Message
00:28
Pattern to Capture Metrics Table
00:30
Verify Patterns
00:11

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

Solution and Demo
10:06
+ Regular Expression Performance
7 lectures 22:19
Downloadable Resources
00:02

What type of patterns to watch for performance issues

Introduction - Patterns Exhibiting Exponential Run Time
03:12

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

Root Cause
04:47

Various options for addressing the performance issue

How to fix performance issues?
03:09

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

Demo - Performance issue and fix
04:03

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

Compiled Versus Module Regular Expression Methods
02:25

Demo of comparison between module and compiled object methods

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

Introduction to sensors and how they collect and store data

Introduction
04:15
Pattern to Identify Header
00:19
Pattern to Capture Data Pairs
00:16

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

Solution and Demo
06:44
+ 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

Introduction
02:19
Pattern for Data Cleanup/Preparation
00:41
Pattern for Matching Row
00:26
Pattern for Matching Cells
00:23
Solution
05:06
+ Project 4 - Network Configuration Parser
1 lecture 00:03
Network Configuration Parser Problem
00:03
Requirements
  • All material and software instructions are covered in house keeping lecture.
  • Familiarity with a Programming Language
Description

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