regexp to list all sentences and sub sentences, with overlapping?

From: Tony (hawkmoon1972_at_hotmail.com)
Date: 11/26/03


Date: 26 Nov 2003 00:46:47 -0800

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



Relevant Pages

  • Re: regexp to list all sentences and sub sentences, with overlapping?
    ... > through a string and contructs a list of sentences and part sentences, ... > Different countries have different ideas. ... > Merry Christmas to all. ...
    (comp.lang.perl)
  • Re: Using NotInList to update tabel with two values
    ... > Private Sub CountryName_NotInList(NewData As String, ... > Dim strSQL As String ... > Dim ctl As Control ... > the African countries are preselected) the NotIn List does not work. ...
    (microsoft.public.access.formscoding)
  • Re: [PHP] Restore Leading Zeros in Zip Codes
    ... Keep the zip code as a string. ... to what we think is the "standard". ... Not to mention, but of the two major English speaking countries, both ... American site seems to think that a postcode is the same thing as a zip ...
    (php.general)
  • How to work with XPathNodeIterator?
    ... I want to return a string with an unordered list of unique countries. ...
    (comp.text.xml)
  • Re: British Airports
    ... Many countries have this type activity such as PLO and many others ... Remember that pointed thing that you wrapped a string around and threw down on the concrete, holding the end of the string, making it spin. ... I just finished reading her reply to El Castor's recommendation to the ejection of non-citizen Muslim fundamentalists. ...
    (soc.retirement)