Standardize phone formatting with regex?


Filtering contacts and trying to search phone numbers in HubSpot is buggy, and the basic search won't search the mobile phone field at all.

We've filed a support ticket for that, but I'm not sure what the outcome will be. So in the meantime, I thought I might be able to figure out a method to standardize the formatting of all our leads' phone numbers using regular expressions.

I thought maybe with some clever HubL and an app, we might be able to rig something up that would do the trick. However, it seems HubL has very limited support for regex. Has anyone come up with a solution for this sort of issue?