I am in need of finding and removing the "-" negative sign in front of a percentage using either Regex or jQuery.
I've tried doing this:
$('[data-excel]').each(function() {
$(this).html($(this).html().replace(' -', ' '));
});
But that doesn't seem to remove it. The reason why i have a space before the negative sign ** -** is there is a word in each that has it worded like this-and so it would pick up that one instead of the one that's the percentage on the page.
An example of what I am looking at:
About -38% is made with this-and also with something else.
Any help would be great! Thanks.