extract_numbers: Extract just the numbers from a string, including decimal points
Description
This function extracts numbers from a string. Contiguous
digits, including decimal points, are made into a single
number. A list of numbers is returned.
Usage
extract_numbers(tmpstr)
Arguments
tmpstr
An input string.
Value
x2 The list of numbers
Details
This saves you having to remember the
regexp/gregexpr code for this
sort of thing, and makes it much easier to parse numbers
out of the text output of various programs.