使用Ruby String#scan我想从中提取:
String#scan
"8 12 13.5 145 foobar-123F 0.33 10"
这些结果:
['8', '12', '10']
但没有别的.
ruby regex
regex ×1
ruby ×1