On 10/20/06, Rob Dixon <[EMAIL PROTECTED]> wrote:
regexes can only match character patterns and can't make decisions based on the numerical value of part of a string.
That's misleading; matching character patterns *allows* one to make decisions based on the numerical value of part of a string. Granted, the way you showed is much more straightforward, efficient, and practical for most purposes. But regexes can select any finite subset of integers, for example, and many infinite ones as well. They are surprisingly powerful. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>