Can you please help us to extract word from a sentence like:
He’s led U.S. efforts for government-centered management ever since, resulting in the missions to the area.
How can we have:
He's
led
U.S.
efforts
for
government-centered
management
ever
since
resulting
in
the
missions
to
the
area
Thank you very much in advance.
Edit and comment:
We thank all for your kind help.
In your case, you can split on the regex
This splits on whitespace, optionally preceded by a dot/comma (but on the dot only if it’s not preceded by an uppercase ASCII letter).
It will fail on edge cases like
etc., so if you have a list of those, you can work them into the regex if your regex engine supports variable repetition inside lookbehinds. Which one are you using?E. g.
would split
into
Explanation: