[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tricky little string parsing challenge
- From: Steve Litt <slitt@...>
- Date: Thu, 21 Mar 2019 17:53:55 -0400
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.
SteveT