Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
The Complete Regular Expressions(Regex) Course For Beginners
Highest Rated
Rating: 4.8 out of 5(7,980 ratings)
33,901 students

The Complete Regular Expressions(Regex) Course For Beginners

Regular Expressions (Regex) for Java,Linux,JavaScript,Python or other languages, with 30 illustrated exercises/examples.
Created byGeorge Sonora
Last updated 6/2026
English
German [Auto],English

What you'll learn

  • Learn Regular Expressions(regex) - A must have skills for an IT professional or a data scientist today in today's world.
  • Understand the core concepts. Once you understand the core concepts, regular expressions(regex) are a piece of cake!
  • Once you learn the basic technique, you can apply your knowledge of regex to any programming language like Java, Python, JavaScript, Linux command line etc.
  • Avoid rote learning, and follow beautifully designed illustrations to understand the core techniques of regular expressions(regex).
  • 30 hands on examples; Each example comes with a step-by-step solution, with graphical illustrations.
  • Follow a well defined step-by-step process , exclusively designed by yours truly, which will enable you to create, use and apply regular expressions(regex) in any scenario that calls for it.
  • Hands-on sessions for multiple regex engines like Java, grep etc. The techniques will be taught in such a way, that you can apply it to ANY regex engine of your choice.
  • Follow standards while learning, so that the regex techniques that you learn in this course can be applied to any standard regex engine like Java, Python, Javascript, grep, sed etc.
  • Take up regex challenges once you have grasped the core concepts.
  • The whole course is scripted to perfection with subtitles.
  • Hand-typed subtitles are provided, which are 100% accurate. The auto generated speech-to-text subtitles are usually of not much use because of low accuracy.

Course content

6 sections34 lectures3h 33m total length
  • Introduction5:01

    Explore how regular expressions search for patterns in data sets, show their use across Java, Javascript, Python, Ruby, and Linux, and help solve everyday problems.

  • Use Cases For Regular Expressions9:50

    Explore practical uses of regular expressions through real-world sign-up form validation and advanced search in csv data, illustrating pattern matching, regex engines, and multi-condition queries.

  • Course RoadMap5:03

    Explore the complete regular expressions course roadmap, from foundations to extended patterns, with hands-on sessions using grep and the Java regex engine, plus find-and-replace practices and challenges.

  • About Course Subtitles1:40

    This course uses hand scripted English subtitles for accuracy, explains why auto-generated captions are skipped, and shows how to enable subtitles via the CC button in Udemy.

  • Deep Dive - First Example7:11

    Explore how to build a regex to identify patterns, using a simple example with foo followed by a* and bar from a text file to distinguish green from red strings.

  • Resources for Download0:03
  • A generic solution to any regex problem2:47

    Learn a repeatable four-step approach to building regular expressions: define requirements, identify inclusion and exclusion patterns, craft a pattern with regex symbols, and test with any regex engine.

  • Hands-on with Linux Grep regex engine4:06

    Learn how POSIX compliant regex engines unify patterns across languages and practice Linux grep to match patterns in a sample file, observing four of six entries.

  • Hands-on with Java regex engine3:40

    Learn to use the Java regex engine with Matcher and Pattern to apply a pattern to input lines, print matches, and compare with grep.

  • Building a Foundation

Requirements

  • All you need is a PC and any tool or programming language of your choice,that has a regex engine. Even notepad++ will do!

Description

Regular expressions(regex) is a moderately difficult topic to grasp, as well as teach. It is really important that you grasp the core concepts thoroughly. Once you get the fundamentals right, regular expressions(regex) will come naturally to you. I struggled to learn regular expressions(regex) myself a couple of decades back. I completely understand the pain points. I have seen tons of free youtube videos on regular expressions(regex), but they all fail in something fundamental. They do NOT care about getting the basics right. I have taken immense efforts to prepare this course material. Each and every concept, each and every exercise, has been meticulously planned in such a way that it sticks to your brain easily. I have created graphical illustrations wherever possible to drive home the point. Each of the 30 examples come with graphical illustrations on how the regex techniques are applied in a step-by-step way, to come up with a solution.


I teach regular expressions(regex) using the POSIX standard. I have done so because the POSIX standard is followed by ALL regex engines. So if you know how to apply the techniques that you learn from this course, you can play around with regular expressions(regex) in ANY programming language of your choice. You could even try it out in Notepad++ (Yes, Notepad++ comes with a basic regex engine.)


I have hands-on sessions for ALL the 30 exercises in this course. Even if you are not familiar with the programming language, you will be able to follow it easily and apply it to your case.


I have kept my voice narration to a very slow pace on purpose. You can put me on 1.5x or even 2x speed on the Udemy player, if you think I am slow.


Something else that is special about this course - The subtitles are hand-scripted and accurate. I have even checked the timings to guarantee accuracy. Most courses come with subtitles that are auto-generated using a Speech-To-Text Engine, the accuracy of which is fairly low. But not mine! I have taken pains to script my course to perfection and include the subtitles too. So if you are at work, and you want to put me on mute, please feel free, although I would like you to hear my voice narration. If you want to put me on mute, just enable the subtitles in Udemy and play!

Who this course is for:

  • Anyone who wants to learn Regular Expressions(regex) inside out and apply them to solve day-to-day problems, Programmers, Developers, or even anyone who deals with data like data scientists etc.