Unspelling numbers

A challenge by Bulmenisaurus avatar Bulmenisaurus

Description

For each spelled out numbers 0-1000 in the input (inclusive), print its numeric value.

For example, for the input ‘three hundred and twenty-three’ you must print 323.

Leaderboard

Author Score
#1 lukegustafson avatar lukegustafson 147
#2 Bulmenisaurus avatar Bulmenisaurus 175
#3 n0Oo0Oo0b avatar n0Oo0Oo0b 198
#4 AlephSquirrel avatar AlephSquirrel 253
#5 Natanaelel avatar Natanaelel 287
You must be logged in to submit a solution.