I think what i'm trying to do is possible... but I haven't found an answer that achieves that yet. I would like to format a string which will be similar to this in javascript:
+44 (0) 234-567-8901
The proceeding international ( +44 ) and local ( (0) ) calling code are subject to change, so the string could be longer or shorter. However the format is always the same.
I would like to take this string and remove all characters including whitespaces up to the second whitespace and remove dashes. e.g:
+44 (0) 234-567-8901 becomes 2345678901
Can anyone help?
Thanks