I have a database that contains company information (address, telephone etc)
On some of the telephone numbers it will have an international code: +44 (0) 123 12345>
Use a regular expression.
var el = $('#contactdetails'); el.html(el.html().replace(/\([0-9]\)/, "-"));
If there is more than a singe digit, then use the * for any number of occurrences of the previous expression.
*
el.html(el.html().replace(/\([0-9]*\)/, "-"));
Live example here