Re: Numerical regex help

2007-01-05 Thread Rob Dixon
Jason Balicki wrote: This should be a quickie, I hope: I'm parsing an array that contains things like Zap/1 Zap/2 Zap/3 ... etc. I'm only concerned with Zap/32 - Zap/47. Will this work: if (($zapdef eq "Zap/*") and ($zapdef eq "*[32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47]*")) {

Re: Numerical regex help

2007-01-05 Thread John W. Krahn
Jason Balicki wrote: > This should be a quickie, I hope: > > I'm parsing an array that contains things like Zap/1 Zap/2 Zap/3 ... etc. > > I'm only concerned with Zap/32 - Zap/47. > > Will this work: > > if (($zapdef eq "Zap/*") and ($zapdef eq > "*[32|33|34|35|36|37|38|39|40|41|42|43|44|45|46

Numerical regex help

2007-01-05 Thread Jason Balicki
This should be a quickie, I hope: I'm parsing an array that contains things like Zap/1 Zap/2 Zap/3 ... etc. I'm only concerned with Zap/32 - Zap/47. Will this work: if (($zapdef eq "Zap/*") and ($zapdef eq "*[32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47]*")) { dostuff(); } and even