Hi guys, pattern matching is always a magic to me. I've wasted an hour on this issue, maybe you can solve faster:
given a string of the form:
number-spaces-number-spaces-number-optionalspaces-optionaltext(with possible spaces in it)
"100 100 60"
"60 250 80 this is it"
i want to extract the 3 numbers and the remainder as a string (or nil or "" it is is empty). what's the simplest way?
my best attempt so far:
which returns the numbers and the first letter of the remaining text. i don't understand why not all the remaining text though.
(i need this to read files in the gpl format, aka gimp palette)