I have a regular expression that produces non-empty sentence-sized fragments. Why does the \s* work?
vector<string> vs = std_strtok(
"bla1 bla1 bla1... bla2 bla22bla2?! bla3 bla3bla3!",
"[.?!]\\s*");
The full code is at https://github.com/sjhalayka/regex/blob/main/main.cpp
It produces:
3
'bla1 bla1 bla1'
'bla2 bla22bla2'
'bla3 bla3bla3'