Regexp::EN::NumVerbage - Regex pattern to match English number verbage in text
version 0.01
use Regexp::EN::NumVerbage ($RE); say $1 if "this year's revenue reaches 2.5 million dolars" =~ /\b($RE)\b/; # "2.5 million"
None are exported by default, but they are exportable.
A regex for quickly matching/extracting verbage from text; it looks for a string of words. It's not perfect (the extracted verbage might not be valid, e.g. "thousand three"), but it's convenient.
Regexp::ID::NumVerbage.
perlancar <perlancar@cpan.org>
This software is copyright (c) 2014 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Regexp::EN::NumVerbage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Regexp::EN::NumVerbage
CPAN shell
perl -MCPAN -e shell install Regexp::EN::NumVerbage
For more information on module installation, please visit the detailed CPAN module installation guide.