Format a string in .NET based on a Regex?

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
Doesn't anyone know of a way to do this? I'm dynamically creating a phone number regex based on an example and the user's country (such as (555) 555-5555 into Regex \(\d\d\d\) \d\d\d-\d\d\d\d ). I want to apply this Regex to a string (such as 5555555555) and have it spit out a string formatted to match the Regex (such as (555) 555-5555).