classefied
Programmer
I have a var(array) 'highlighted', which contains short sub-strings like 'd1;d4;d12;d110;'
and when I call the function using- remv(d1), the substring remains in the string - no matter what.
The [highlight #FF99FF]function remv(str){
var RegExp= "/", noHighlight = ""
noHighlight= '\;' ; RegExp+= '\b' + noHighlight + '\b\g';
highlighted.replace(RegExp,'')
}[/highlight]
I can continually add substrings to the main string, but cannot delete any.
Help me [highlight]please![/highlight]
and when I call the function using- remv(d1), the substring remains in the string - no matter what.
The [highlight #FF99FF]function remv(str){
var RegExp= "/", noHighlight = ""
noHighlight= '\;' ; RegExp+= '\b' + noHighlight + '\b\g';
highlighted.replace(RegExp,'')
}[/highlight]
I can continually add substrings to the main string, but cannot delete any.
Help me [highlight]please![/highlight]