Convert written out numbers to integers
Convert spelled numbers such as ‘one thousand, two hundred and thirty-three’ to their equivalent form in digits (1233)
Adapted and extended from https://github.com/ghewgill/text2num
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.