lua-users home
lua-l archive

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


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