
Learn how meta characters behave inside character classes, and escape the hyphen, closing square bracket, and caret with a backslash to prevent unintended ranges or negation.
Master the zero or more quantifier, the asterisk, to match a digit followed by zero or more zeros. Use a 1–9 range to match patterns like 110 or 202,000.
Master the social security number pattern by matching three digits, a hyphen, two digits, a hyphen, and four digits using exact quantifiers or the \d shorthand.
Explore how groups in regex treat multiple literals or classes as single units, enabling alternation, quantifiers, and optional patterns for matching urls and emails.
The multiline flag makes each line a separate string, creating a start and end of string per line. These anchors specify search locations and narrow the regex engine's work.
Regular expressions (Regex) are a rather simple technique to grasp but, nonetheless, of extreme importance in the programming field. If I had to guess, however, I would venture to say that most programmers are not acquainted with even the most elementary principles of Regex.
Sure, You could tell me: “I have survived so far without knowing Regex.”; chances are, however, that the moment will come for you to face a task that includes the need to work with text, in which case I’m sad to tell you that your code will quickly “join the dark side of the Force”... Jokes aside, I can assure you that, without Regex, you will miss many tools that would enable you to write cleaner, more efficient code, not to mention they would save you a considerable amount of time and quite a bit of effort!
For a quick glance at the topics you will learn on Regex:
Groups
Character classes (also known as “Character sets”)
Quantifiers
Backreferences
Flags
Borders
If you are not familiar with any of these subjects, or even if you would like to deepen and/or broaden your knowledge while developing some handy skills, this course will greatly help you not only to effectively use Regular Expressions but also (and more importantly) to become a more well-rounded programmer.
It will certainly be a joy and a privilege to have you as our student!
We wish you all the best and a great learning experience!