Regular Expressions Introduction

An introduction to the regular expressions and how they deal with strings.

We'll cover the following

Background

In programming, we frequently parse or make queries over strings. Pattern matchings become tedious when writing string manipulation or iteration code. Moreover, it is not always best to write loops to index and iterate strings for manipulation. The solution to these issues? Regular expressions.

Introduction

Regular expressions are expressions containing a sequence of characters to invoke a sequence matching or pattern matching of strings. They usually carry out “search and replace” actions. These are sometimes called rational expressions or RegEx for short. RegExes are available in most programming languages including JavaScript.

Get hands-on with 1200+ tech skills courses.