Hello,
Can someone please point me toward a regular expression that goes
through a string and contructs a list of sentences and part sentences,
where words are gradually dropped from the front of the current
sentence? Sound confusing?
Well perhaps an example would help? Given...
"Different countries have different ideas. Merry Christmas to all."
I'd like to output:
Different countries have different ideas.
countries have different ideas.
have different ideas.
different ideas.
Merry Christmas to all.
Christmas to all.
to all.
Is that possible?
Thanks in advance,
Tony