Build Your Own Client-Side Validation System? You'll do it. Animated Explainer Videos To Learn Regular Expression concepts? It's here!
When you begin to learn Regular Expressions for the first time, it might seem like a random string of nonsense. While they might look awkward at times, they are very useful. Once you have a solid understanding of regular expressions you will become a much more effective programmer. To fully understand regular expressions you need to learn the basic concepts which you can build upon.
1. So What Is A Regular Expression?
A regular expression, regex or regexp (sometimes called a rational expression) is a way to describe a pattern to work with strings by using special syntax.
By formulating a regular expression you can...
Search for text in a string,
Replace a sub-string in a string,
Extract information from a string.
2. A Little History About Regular Expressions.
Regular Expressions began to emerge as a way to describe regular languages.
In the 1950s, Regular expressions originated when mathematician Stephen Cole Kleene described regular languages by using his mathematical notation called regular sets.
Regular expressions later became an important part of the tool suite that emerged from the Unix operating system—the ed, sed and vi (vim) editors, grep, AWK, among others. But the ways in which regular expressions were implemented were not always so regular. They really began to show up in the programming world during the 1970s.
3. Situations Where Regex Can Be Used.
Common applications include data validation, data scraping (especially web scraping), data wrangling, simple parsing, syntax highlighting systems, text or string processing tasks where the data need not be textual, and in search engines such as Google in order to determine an algorithmic match to the query a user is asking.
Now have you ever wondered how you get feedback from an online form informing you that you had entered invalid information?
How did it know you entered invalid information?
The answer is that behind the scenes Regular Expressions is used to validate your input.
4. What You Will Learn In This Course
Here is exactly what you're going to learn:
Difference Between A Character And A String.
How To Match Simple Specific Characters.
How To Match Different Characters In A Single Position - Character Sets.
How To Define A Character Range To Match Different Characters In A Single Position - Character Ranges.
How To Define A Negated Character Set OR Range.
How To Match Any Character With A Period Or Dot (Except For A New Line).
How To Escape (Turn OFF Special Meaning) Reserved Regular Expression Characters By Using The Backslash "\" Character.
How To Match Any Word Character (Alphanumeric).
How To Match Any Non-Word Character.
How To Match Any Digit.
How To Match Any Non-Digit.
How To Match A Character Either Zero OR One Time.
How To Match Either Zero OR More Repetitions Of A Character.
How To Match Either One OR More Repetitions Of A Character.
Line Anchors - Assert The Start And The End Of A String.
How To Specify The Exact Amount Of Repetitions To Match.
How To Specify The Least (Minimum) Amount Of Repetitions To Match.
How To Specify The Minimum And Maximum Amount Of Repetitions To Match.
How To Match Alternate Strings OR Words.
By the end of this course, you will gain valuable information to read and create your own regular expressions.
I learned Regular Expressions years ago by hard trial-and-error. Now you can learn at 5x the speed I did. This is the course that I wish I had when I first got started with Regular Expressions.
But if you're not 100% sure yet, just go ahead and watch the promo video and free lectures to take a look at the course project. I promise you will be amazed :)
See you in the course!