Regular expressions, or simply regex, is a pattern-matching technology used widely across programming languages with the string data type to carry out complex searching. Regular expressions can be used to find simple to extremely complicated patterns within strings and extract them out in order for further processing.
Where string-based searching finds its stop, regex-based searching finds its start. Regular expressions are extremely powerful, useful and time-saving. Theoretically, they aren't very complicated to understand, however, if not understood the right way, they can quickly become really ugly!
By the end of this course, you will know:
- How to construct regular expressions for basic search patterns.
- How to work with the
- How to craft regular expressions leveraging such diverse ideas as character sets, character classes, assertions and boundaries.
- How to use flags to modify searching behavior to solve a wider array of searching problems.
- What is grouping and backreferencing, and how they're vital to storing matched portions in a search and then operating on them.
- How to analyze a searching problem and then design a regular expressions to test for it.
Table of contents
Foundation2 hrs 42 mins 12 chaptersDescription:
In this unit we will discover all that there is in regular expressions. We'll begin with a brief introduction to regexp, then see how to write them, where to write them while consider a handful of examples. Moving further we'll discover how to modify searching behavior using flags; replicate patterns using quantifiers, match walls between characters using boundaries; capture matches for patterns; use string and regexp methods to solve searching problems.Introduction11 minsBasics16 minsFind and Highlight ExerciseEasyFlags21 minsFlags Quiz4 questionsQuantifiers9 minsQuantifiers Quiz8 questionsCharacter Sets20 minsCharacter Sets Quiz9 questionsCharacter Classes16 minsBoundaries13 minsGrouping12 minsBackreferencing15 minsAssertions14 minsString Methods8 minsRegExp Methods7 mins
Frequently asked questions
Are regular expressions difficult to learn?
Not at all! There are not many things to learn in regular expressions; you can easily get fluent with understanding and creating regular expressions in just over a week.
What if I get stuck somewhere in the course?
If you're having a hard time understanding a given concept in the course, feel free to reach out to us via our email
firstname.lastname@example.org, describing the issue you're facing. We'll try our level best to help you out.
Some important topics are missing from the course. Why is that so?
Our courses are released while they are still under construction so that our learners can get early previews. As we continuously work on adding more and more content to our courses, if a given topic isn't covered today, there's a high chance that it's already under way and will show up very soon. You can follow us on Twitter to be updated with our latest content releases.
How can I ask any general questions related to the course's content?
Write to us at
Share your experience
Empower others and help shape new learning journeys!
We are really glad to know that our immense effort on creating this and other suchlike courses got you here. We believe that your insights regarding this course can inspire and guide others on their learning path. We'd really love to hear about your viewpoint on the course and how it helped you improve your skills.
- Write about your experience of a given course and how it helped you in levelling up your skills.
- Include the
@codeguagehandle in your post. (That's important!)
- Include the
#SkilledUpWithCodeGuagehashtag in your post.
And that's it! It's that simple.
We sincerely thank you for being an integral part of our community and helping us shape a brighter future for aspiring programmers and mathematicians.
Together, let's build a community of learners. Happy learning! 🙂
Why this course?
Free of cost
No need to buy any subscriptions, make any payments, or create any accounts. All the content is available for free.
Content throughout the course is organized in a chronological fashion, ensuring a clear and intuitive learning experience.
Simple to understand
Everything is explained in plain and concise words, right from the perspective of an absolute beginner.
Certain concepts require a pretty deep insight. Fortunately, we provide all that insight in easy words.
*The durations mentioned on this page are merely an estimate; the actual time completing the underlying topic/course would obviously be much greater.