[GLLUG] Changing words into numbers

John Levin john at technolalia.org
Tue Aug 14 10:11:13 UTC 2018

On 14/08/2018 11:03, Jason Clifford via GLLUG wrote:
> I'm fairly sure there is already a Perl module that does this


Thanks v much!

(Seems like Perl is a very good language for text manipulation.)


> ---- On Tue, 14 Aug 2018 10:46:18 +0100 *gllug at mailman.lug.org.uk * 
> wrote ----
>     Dear list,
>     A problem which I think has a philosophical side as much as a
>     practical one:
>     What is the best way (or what are the ways) to replace numbers written
>     out in words with digits?
>     (e.g. "the year one thousand eight hundred and seventy six" to 1776, or
>     "nine hundred and ninety pounds" to 999 pounds).


John Levin

More information about the GLLUG mailing list