yeah. i came up with (on my own)
newString = oldString.replace(/\.(?!\.|\s)/g, '. ');
seems to work. English goes: Replace a '.' which is not followed by a '.' or a ' '
but you know. i'm no expert.
(
connor,
Sun 20 Apr 2008, 6:41,
archived)
Ahhh, i see, you used the (? ) lookahead option
which checks following characters without operating on them, very clever, why didnt I think of that.
COUGH
(
StickFigureNinja is worried he may be on the list,
Sun 20 Apr 2008, 6:43,
archived)