John W. Krahn wrote: > Rob Dixon wrote: > > > > Sudarshan Raghavan wrote: > > > Sachin Hegde wrote: > > > > > > > > <131> if($flds[5] =~ /[a-zA-Z]+/) # Check for a hex number > > > > Also your check for a hex number is wrong - it will be successful if the > > string contains at least one alpha character. Change this for > > > > if ($flds[5] =~ /^[a-z0-9]+$/) > > Also wrong. It should be: > > if ( $flds[5] =~ /^[a-f0-9]+$/i ) >
Yes. Dammit. I knew that /i should be in there when I posted, but it never got from my head to my keyboard. Temporary synaptic link problem :) Thanks John. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]