[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
> 
> 

This?
https://metacpan.org/pod/Lingua::EN::Words2Nums

Thanks v much!

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

John


> ---- 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).
> 
<snip>


-- 

John Levin
http://www.anterotesis.com
http://twitter.com/anterotesis
https://hcommons.org/members/johnlevin/



More information about the GLLUG mailing list