>I'm writing a system that receives data from another system using c#. I'm wondering if there is a easy way to parse or transform a string.
>
>example:
>data comes as: (555)555-1234
>Need to convert to: 555-555-1234
>
>I'm planning on just looping through the length of the string and looking for the ( ), but I thought C# might have a wonder tool I could use.
>
>Thanks
>
>Kirk
Can you run it through a method to strip all non-numeric characters, and then re-format it like you want? Or are you looking for something a little more general?