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

# I came up with
newString = oldString.replace(/\.(?!\.|\s)/g, '. ');
seems to work. English goes: Replace a '.' which is not followed by a '.' or a ' '
(, Sun 20 Apr 2008, 6:38, archived)
# ? operator
something i don't know about. looks like problem solved then
(, Sun 20 Apr 2008, 6:46, archived)
# (? ) is lookahead apparently, checks the following character without performing a function on it
I'd be lost without google if i'm honest though.
(, Sun 20 Apr 2008, 6:49, archived)
# ? is superawesome
i shall start using it?
(, Sun 20 Apr 2008, 6:56, archived)