A regular expression, or regex is a sequence of characters that defines a specific search pattern. It can be used to find certain patters of characters within a string, in this case an email.
This tutorial demonstarates how a regex functions by breaking down each part of an email expression and describing what it does.