I have a database containing company information (address, phone, etc.)
For some phone numbers, he will have an international code: +44 (0) 123 12345
where (0) will be different numbers depending on the country.
I need to take off (0)
I have the following code:
var el = $('#contactdetails');
el.html(el.html().replace("(0)", "-"));
which works on (0) - but how to do it for wildcards
Jason source
share