How get only numbers from a string

and if a contains real numbers you might use regular expressions:
parse by means of regular expression