I would like to extract numbers from a string such as
There are 1,000 people in those 3 towns.
and get an array like
I got the following number matching Regex from Justin in this question
This works great for checking if it is a number but to make it work on a sentence you need to remove the "^" and "$".
Without the start and end defined you get a bunch of 0 length matches these can easily be discarded but it also now splits any numbers with a comma in them.
A bonus would be not having all the 0 length matches as well.