I want to write a regex to find whenever there isn't a space after a period or comma, unless there are three periods in a row, in which case it's find to have another word character after.
E.g.
"Hello.how are you" -> Match
"Sounds good..." -> No Match
"...are you sure?" -> No Match
This is what I have so far (quotation marks after ., are fine too), but it finds a match for the third example, which I don't want.
/[.,][^\s"”.]/g How can I specify that \.\.\.\w should not match, but any other \.\w should?
(Using js)
(?<!\.)[,.][^\s"”.]Hello.how are youstring? If you replace with space, usereplace(/(\.{3}\w)|[.,](?![\s"”.])/g, function(x,y) { return y ? y : " "; })