[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] how to prepare (mac) multi-line (text) file, then match ...



On Sun, 10 Aug 97 13:14:01 PDT, you wrote:

>If I were approaching this, I'd start with the hard part, namely deciding
>what makes a sentence.  If you are very lucky, then the rule might be to
>consider that every period followed by two spaces and every question mark
>or exclamation point followed by at least one space ends a sentence.

Make that one space. And don't forget the case where a line ends with
any of [\.!?]. Abbreviations might/will cause trouble.

Anyway, if a line ends with another character, ignoring all trailing
whitespace, then the sentence continues on the next line.

HTH,
Bart.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch