Python Regular Expressions With Examples

Learn Python's RE module in detail with practical examples.
Free tutorial
Rating: 4.1 out of 5 (297 ratings)
17,532 students
2hr 16min of on-demand video

Complete understanding of Regular Expressions and how to use RE module in Python programming.


  • A Windows PC or Apple Mac with OSX.
  • Some basic programming skills in Python.


Python Regular Expressions With Examples. course gives you comprehensive overview of Python's RE module. 

Here are some important topics:

1. What are Regular Expressions.

2. RE module methods: 

  • search()
  • match()
  • findall()
  • finditer()
  • sub()
  • compile()
  • split()

3. Writing regular expression patterns using:

  • Repetitions
  • Non Greedy Repetitions
  • Character Sets
  • Character Ranges
  • Escape Codes
  • Anchoring
  • Flags
  • Groups and Named Groups

All these are explained with lots of code examples. Course includes a quiz. 

Who this course is for:

  • Professional Programmers.
  • IT Team Leaders / Managers.


Software Engineer ~ Passionate Teacher ~ 32,000+ Students
Kris Yamarthy
  • 4.3 Instructor Rating
  • 1,482 Reviews
  • 40,015 Students
  • 2 Courses

    I am a senior software development analyst who has worked at top-rated computer and financial firms for over 30 years, including the likes of IBM, Goldman Sachs, Morgan Stanley, Dow Jones, New York Life and Citi Bank. It was a long journey.    I designed, developed and managed many software applications at these companies using  Sybase, Oracle, Informix, Informatica, C, C++, Java, Transact Sql, C Shell, Korn shell, Perl, Python and Ruby in Unix and Windows environments. Also developed web application using HTML, CSS, JavaScript and PHP. My experience was mostly with financial companies, but my first seven years was with IBM, developing tool control software using C language.    I started my career teaching C Programming, Micro Processors on Apple 2e computers at Bergen Community college, NJ.  Also conducted workshops for gifted & talented kids in Robotics and programming in Basic at Bergen Tech. I think I have a passion for Teaching. I also come from a family of teachers and professors.    Education wise I have two masters: One in Physics and one in Computer Science.    One of my happiest moments was when I heard my application was still running at Citi Bank even after 15 years and couple of corporation mergers.    I look forward to seeing you take part in the course. If you have any questions or comments feel free to contact me. 

Top companies trust Udemy

Get your team access to Udemy's top 19,000+ courses