How can I use regular expressions in Excel?

I'd like to do something like this:

A2 = preg_replace('#[^A-Za-z0-9_-]#','',A1);
3 answers 3