The REGEXMATCH function allows you to test whether a piece of text matches a regular expression. A regular expression (regex) is a sequence of characters in a special format that specifies how it should match with a piece of text. This wikipedia article explains the basics. There are also sites that help you with constructing and testing your regex e.g. regex101.
Note that regex are powerful, but also quite difficult. They can become complex and hard to maintain. Truly explaining regex is beyond the scope of this help document. If you are interested in learning more about regex, you can find many tutorials online. This document tries to get your started quickly with the REGEXMATCH
function and assumes some familiarity with regex.