Presumed knowledge
-
JavaScript
This course explores regular expressions in JavaScript, likewise knowledge of the core language and its APIs is assumed.
Course overview
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!
This course teaches you how to work with regular expressions specifically in JavaScript. That is, you'll get to explore the built-in RegExp
interface; how to construct regular expressions in JavaScript; how to change between fixed and dynamic expressions; and so on. You will learn a lot of concepts in the way and actually learn regular expressions the right way.
Learning outcomes
By the end of this course, you will know:
- How to construct regular expressions for basic search patterns.
- How to work with the
RegExp
interface in JavaScript. - 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
Foundation
2 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.
-
Is learning regular expressions necessary for a JavaScript developer?
While regular expressions aren't directly necessary in order to become a JavaScript developer, once you do learn them, you'll gain a lot of potential; learning regular expressions will supercharge your programming career. And most importantly, they aren't just limited to JavaScript; you can apply similar ideas to other programming languages as well.
-
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
mail@codeguage.com
, 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
mail@codeguage.com
.
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.
The best part is that you get to post the review from your own Instagram or Twitter account, while mentioning CodeGuage in your post. The process to follow is really simple:
- Write about your experience of a given course and how it helped you in levelling up your skills.
- Include the
@codeguage
handle in your post. (That's important!) - Include the
#SkilledUpWithCodeGuage
hashtag 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.
-
Well-structured
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.
-
Detailed explanations
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.