Pattern Matching Queryby Elgon (Curate)
|on Sep 17, 2002 at 12:31 UTC||Need Help??|
Elgon has asked for the wisdom of the Perl Monks concerning the following question:
Yet another daft question from Elgon,
I am rewriting my Texas Hold'ems Tool as an object oriented module and I'm trying to increase the fluency of the code. Thanks to kschwab, John M. Dlugosz, ignatz and others for help so far. The problem I am currently working on is how to reduce out one of the patterns which matches to the list of values of the cards. At the moment I have:
but what I'd really like to say is something like...
I've tried reading the Chapter on regexps and pattern matching in the Blue Camel but I'm not really making any progress. In essence I'm trying to match all combinations of characters where they form a contiguous sequence (I have thought about doing this using the return values from ord() but decided that this would be inelegant.)
Can anyone give me some pointers please?
"Rule #17 of Travel: Never try and score dope off Hassidic Jews while under the impression that they are Rastafarians."