instead of using 1 text field in your form, use three fields. phone1 phone2 phone3.
Then you join the form data into one string. $phone = "(phone1) phone2-phone3"
I purposely left out any defining markup in the string because I don't know what language you're designing in, but it would be the form values.
That way is a whole lot easier than splitting the variable then putting it back together again. This way it's already split for you.
Edit: Nico's works too, but keep in mind that not all browsers have Javascript enabled, and there are a few out there that use a different java engine and it may be incompatible.