/PyRegex

Regular Expressions (Regex) with Python course is designed to provide hands-on experience with regular expressions through various exercises and projects

Primary LanguageJupyter NotebookOtherNOASSERTION

Shield: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

Regular Expressions (Regex) with Python - Easy and Fast!

Video Course available on Udemy:
https://www.udemy.com/course/python-regular-expressions/?referralCode=D9D33D8FCD263F7CDAE3

Regular Expression (regex) is a pattern detection language – they are typically used to search patterns in text, extract matching values, and data validation.

Regex is supported in many programming languages, including Python, C#, JavaScript, Perl, SQL, and more.

Regular Expressions (Regex) with Python course is designed to provide hands-on experience with regular expressions through various exercises and projects

Stop googling and master regular expression with my simple and straightforward course

What will you learn in this course?

  1. In just a couple of hours, you will master regular expression language and learn the internals of the regular expression engine
  2. You will apply your new skills with four hands-on, real-world projects
  3. You will gain a solid understanding of the type of performance issues regex can run into, and techniques to address them
  4. 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
  5. You can transfer your regex learning to any language

Why Learn Regular Expressions?

  • Often, the data that we need is not readily accessible or useful.
  • Data preparation and clean-up are 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

Source Code

  • The source code for this course available on Git and that ensures you always get the latest code

Ideal Student

  • The ideal student for this course is willing to learn, participate in the course Q&A forum when you need help, and you need to be comfortable coding in Python.

Author

Hello, I'm Chandra Lingam, and I'll be your instructor for this course. With over 100K students, I'm committed to staying current with the latest technologies and sharing my knowledge from the fundamentals up. I'm excited to have the opportunity to meet you and guide you through this course.

Contents of this repostiory

  1. Interactive tool is a learning aid for you to visually observe and build Regex patterns
  2. Python Regular Expression Quick Reference Guide is a 2 page PDF document that contains the rules of Python Regular Expression Language, methods and features.
  3. Folder Structure:
    a. Data - Contains datasets used for the course
    b. InteractiveTool - Contains source code for interactive python regex tool
    c. UsageExample - Practical examples using Robocopy log, Sensor data, Health data.

To launch interactive tool:
python LearnRegex.py (on Python 3.x version)

or

python LearnRegex2.7.py (on Python 2.7 version)

Usage: Pattern - Specify pattern here Replacement Pattern - Specify replacement text or pattern (to be used with Replace button) Text - Text on which to look for Pattern Result - Output of the operation

Actions Match - Find the first match Next Match - Find subsequent matches Replace - Replace matches with specified Replacement Pattern Split - Split text based on Pattern