任务
给定一串英文数字名称,它们“一起折叠”,如下所示:
zeronineoneoneeighttwoseventhreesixfourtwofive
将字符串拆分回数字:
zero nine one one eight two seven three six four two five
规则
输入始终是字符串。它始终由一个或多个小写的英文数字名称组成,折叠在一起,仅此而已。
- 英文数字名称为
zero one two three four five six seven eight nine
。
- 英文数字名称为
输出可以是字符串列表,也可以是新字符串,其中的数字由非字母,非空字符串分隔。(您的输出也可以选择在开头或结尾处包含这样的字符串,并且分隔符不必保持一致。因此,即使这样,
{{ zero0one$$two );
也是有效的答案(如果很荒谬)zeroonetwo
。)以字节为单位的最短答案将获胜。
测试用例
three -> three
eightsix -> eight six
fivefourseven -> five four seven
ninethreesixthree -> nine three six three
foursixeighttwofive -> four six eight two five
fivethreefivesixthreenineonesevenoneeight -> five three five six three nine one seven one eight
threesevensevensixninenineninefiveeighttwofiveeightsixthreeeight -> three seven seven six nine nine nine five eight two five eight six three eight
zeroonetwothreefourfivesixseveneightnine -> zero one two three four five six seven eight nine