[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] number ranges



On May 14, Andy Bach said:

>I've a test that gives back all the case mgrs and their number 
>ranges, but it looks like:
>andy: [01234]5
>tina: [56789]5
>
>I'd like to have the [x-x] ranges back in the output, which I can do 
>brute force-ish, but I have this nagging sense that there is a clever way 
>to do it.  Any guesses?

Are you asking "how can I turn a given set of numbers into a character
class to match them?"

-- 
Jeff "japhy" Pinyan      japhy@pobox.com      http://www.pobox.com/~japhy/
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe