Re: A function that expands value() and more
- Posted by euphoric (admin) May 24, 2018
- 1658 views
Senator said...
Just an observation. The function does not "Gets any numerical value at any position on a string", but rather gets or extracts the first numerical value found in the string and appends any subsequent numerical symbols to the initial numerical value.
print(1, val("This string includes the numbers 42 18 36.")) -- outputs -- 421816 instead of -- 42 18 16
So, the function should output a sequence of found values. In the case above, it would return {42,18,36}.