regexp to list all sentences and sub sentences, with overlapping?
From: Tony (hawkmoon1972_at_hotmail.com)
Date: 11/26/03
- Next message: Jürgen Exner: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Previous message: MichaelC: "Re: Regexp issue . . ."
- Next in thread: Jürgen Exner: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Reply: Jürgen Exner: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Reply: Andy De Petter: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jürgen Exner: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Previous message: MichaelC: "Re: Regexp issue . . ."
- Next in thread: Jürgen Exner: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Reply: Jürgen Exner: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Reply: Andy De Petter: "Re: regexp to list all sentences and sub sentences, with overlapping?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|