J
Jeppe Jakobsen
------=_Part_20441_2617855.1139091631058
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi all, how do you scan a string and avoid getting my decimal numbers
divided into 2 numbers.
Example:
a =3D "24,4 + 55,2"
a.scan! (/\d+/)
puts a
my output for a will be:
24
4
55
2
But I want to keep my decimal numbers intact like this:
24,4
55,2
How do I solve this problem without putting the numbers into seperate
strings?
------=_Part_20441_2617855.1139091631058--
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi all, how do you scan a string and avoid getting my decimal numbers
divided into 2 numbers.
Example:
a =3D "24,4 + 55,2"
a.scan! (/\d+/)
puts a
my output for a will be:
24
4
55
2
But I want to keep my decimal numbers intact like this:
24,4
55,2
How do I solve this problem without putting the numbers into seperate
strings?
------=_Part_20441_2617855.1139091631058--