I'm at my wit's end, so any help would be greatly appreciated!
I want to find trailing whitespace at the end of a string,
then adjust the string's length accordlingly.
This is what I have so far:
space = /''$/g;
kitstring = kitstring.replace(/''$/g, null);
for (i = 9; i > 0; i--)
if (kitstring[i] == space)
kitstring.length = kitstring.length--;
I've tried many things, and looked around in the forum.
Am I doing something wrong with regex or kitstring.length?
No matter what I do the string length always appears as "10" in the max window.