P
P
partyzanx2020-03-05 03:50:40
JavaScript
partyzanx, 2020-03-05 03:50:40

When splitting into sentences, how do you identify a sentence that does not end with any punctuation mark?

5e604caa5fa2b083815046.png
How can the remaining part be also included in the sentence?
String Expression Also, if it is just a string , then also highlight it as a sentence. 不及物动词 .不及物动词。不及物"动词"!不及物《动词》!不及物«动词»!不及物«动词»;不及物动词
/[^\.\!\?!。?,,::;;]+[\.\!\?!。?,,::;;]+/g

不及物动词

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Pankov, 2020-03-05
@partyzanx

/[^\.\!\?!。?,,::;;]+([\.\!\?!。?,,::;;]+|$)/g

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question