Regular expressions in Excel
Regular expressions in Excel are made easy with the pwrREGEXMATCH function.
As a demonstration of the function, the example file pictured below is set up to evaluate a regular expression entered in cell D2 against text entered in cell D4. The result is contained in cell D8.
The formula used in Excel (cell D8) is the following:
=pwrREGEXMATCH(D4, D2)
That’s it. Download the example worksheet (link below) or just create one on your own. Using this, you can easily try out different regular expressions against some target text to massage into the perfect regex for your need.
Download the sample workbook here.