In javascript, I'm interested in splitting a body of text into an array sentences, where it ignores decimal numbers (and ideally web sites) for the split. I've found how to do it for sentences - e.g., str.split(/[\.\!]+\s*|\n+\s*/)
- but not sure how to add the extra bit to ignore decimal numbers in the split
For example, if
str = "Hello there, the ice cream is $2.00.Toppings are extra."
Would result in
["Hello there, the ice cream is $2.00", "Toppings are extra"]
Is this possible?
thanks!