Photo by Štefan Štefančík on Unsplash

Read This If You Don’t Know Enough About Regex

Learn the basics of one of the hardest things to learn as a programmer

Regular expressions are a way to do pattern matching on text. They’re often overlooked and most programmers think about them as something that’s hard to learn.

Despite the fact that regular expressions are very powerful, a lot of programmers aren’t really knowledgable when it comes to regular expressions.

Diving into regular expressions can get quite hard since it definitely has a learning curve. Though once you’ll get to know a little bit more about regular expressions, you’ll see that they can accomplish quite a lot.

One of the most obvious use cases is to search large codebases for certain pieces of text. If you’re a web developer you’ve probably used regular expressions at some point in your career to validate user data. And regular expressions can even be used to prohibit committing certain strings.

As you can see, there are a lot of use cases for regular expressions. The use cases for regular expressions are so versatile that you can’t simply ignore them.

That’s exactly why it’s a good thing to get more familiar with regular expressions. In order to become a better programmer, it’s essential that you get more of a feeling with regular expressions and that you at least know the basics.

In this article, we’ll cover the basics of regular expressions. Along with the theory, the basics of regular expressions will be demonstrated using examples that clarify the way regular expressions work.