[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tricky little string parsing challenge
- From: Sean Conner <sean@...>
- Date: Thu, 21 Mar 2019 18:08:15 -0400
It was thus said that the Great Steve Litt once stated:
> On Tue, 19 Mar 2019 12:07:19 +0000
> Geoff Smith <spammealot1@live.co.uk> wrote:
>
>
> > Of course I had forgotten about not splitting on decimal points in
> > numbers. How can I adapt this to ignore the full stop character if
> > surrounded by numbers?
> >
> > Thanks for any solutions.
>
> The problem is in the specification. It's not easy to describe what's a
> sentence ender and what's a decimal point. I'd split on a dot followed
> immediately by whitespace: Space, Tab, Newline or Formfeed.
Mr. Litt would break on a dot followed by whitespace. Mr. Conner would
disagree, as he thinks e. e. cummings would also disagree. What constitutes
a sentence? Is this a sentence?
-spc (He who took the No. 9 train.)