REGULAR EXPRESSION
HI,
I need to change a simple string using regular expression + javascript but I am stuck with the regular expression.
This is the string:
<DIV class="action" style="WIDTH: 80px" onclick="sortFullGrid(1, 13, 'Total Ads')">Total Ads
</DIV> </NOBR> </TD> <TD align="middle">
<NOBR>
I need to get rid of carriage return and blank spaces between the tags. the output:
<DIV class="action" style="WIDTH: 80px" onclick="sortFullGrid(1, 13, 'Total Ads')">Total Ads</DIV></NOBR></TD><TD align="middle"><NOBR>
To get rid of the carriage return I used this:
/n
However, I cannot get rid of the blank spaces. I have tried this ' ', '' but it will also remove white space from inside the tags (<DIVclass="...)and this is not what I need.
I have tried this as well: > < but it does not work.
Can someone shed some light?
Cheers
|