How to split a US mobile number before storing it into database? : <p>I am trying to store a US mobile number in a database. Yet, before I would store it, I need to split the number into 3 parts. The Zip Code, Area Code and then the number.
Eg: +1 (213)-435-4676. I need to split this number, Zip code (213), Area Code (435) and then number (4676). </p>

<p>Is there any simpler way to do this in the controller point, after passing the argument? Or can I do it in the View using jQuery or javascript? What is the best possible way? Thanks in advance.</p>
