
newString = oldString.replace(/\.(?!\.|\s)/g, '. ');
( ,
Sun 20 Apr 2008, 6:46,
archived)

Fucking yeah, that's perfect.
I'll study what you've done and see if I can figure out how it works. I may be able to make some of the earlier string operations more efficient now too.
Thanks man, I owe you one.
Edit: lookahead! Who knew?
( ,
Sun 20 Apr 2008, 6:56,
archived)
I'll study what you've done and see if I can figure out how it works. I may be able to make some of the earlier string operations more efficient now too.
Thanks man, I owe you one.
Edit: lookahead! Who knew?

www.regular-expressions.info/lookaround.html#lookahead
Keep in mind that javascript doesnt support Lookbehind though, only Lookahead.
( ,
Sun 20 Apr 2008, 6:59,
archived)
Keep in mind that javascript doesnt support Lookbehind though, only Lookahead.