b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 8302332 (Thread)

# Ok, thanks
I really appreciate your help.
I don't know if I can adapt the code sample you've given me, but the rephrasing is really helpful, I'm much clearer now about what I need to achieve.
Thanks!
(, Sun 20 Apr 2008, 6:35, archived)
# *points below*
(, Sun 20 Apr 2008, 6:38, archived)
# 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.
(, 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
(, Sun 20 Apr 2008, 6:43, archived)
# glad to be of assistance
you are mofaha after all!
(, Sun 20 Apr 2008, 6:53, archived)