Values could be submitted as individual phone numbers, separated with commas:
01 40 00 00 04, 01 90 00 00 09
Or as a continuous series of numbers:
01 44 00 00 20 – 01 44 00 00 25
This format should work as well:
01 44 00 00 20 – 25
And, of course, the different formats can be mixed:
01 44 00 00 20-25, 01 90 00 00 09, 01 30 00 00 03-05, 01 70 00 00 07
We also want to avoid the user to submit, intentionally or not, a too long list of numbers, so we will limit every continuous list of numbers to the first 100 values:
Finally, this is how the function looks like: https://gist.github.com/cygeorgel/95e25e79b024a0397cc5d31416923a20