mod_alex has asked for the wisdom of the Perl Monks concerning the following question:
Can anyone of you advise me if there is some module on CPAN or algorithm to search incremental expressions with regexps or by some predefined pattern
ie "4321234" =~ /(\d)\A1\A2\A3/ where we assume that A1 = $1 + 1 , A2 = A1 + 1, ...
My problem is I should implement some algorithm that returns a category of a given number string. ie
get_category("10000") = 10 # best category get_category("12345") = 10 # good category get_category("54321") = 8 # average category
So I want to set some rools for each category with regexps or regexp like patterns.
The only problem is how to search incremental expressions with regexps or how to effectively implement it by myself
Thanx, Alex
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp for searching incremental expressions
by hv (Prior) on Mar 12, 2004 at 13:10 UTC | |
|
Re: regexp for searching incremental expressions
by Tomte (Priest) on Mar 12, 2004 at 11:11 UTC | |
by mod_alex (Beadle) on Mar 12, 2004 at 12:33 UTC | |
|
Re: regexp for searching incremental expressions
by matija (Priest) on Mar 12, 2004 at 11:08 UTC |