You could do 2 things: either say: if ($fields[14] =~ /[AM]/) or if ($fields[14] =~ /M|A/) the first uses a character class, the second a simple boolean 'or' hth, Jos Boumans Govinderjit Dhinsa wrote: > One question please, I want to search for M and A, at the moment I am > only searching for M (as below) > if ($fields[14] =~ /M/) > > Would the example below be correct please; > if ($fields[14] =~ /\M\|\A\/) > > Your help is much APPRECIATED > > > Kind Regards, > > GD > >
- RE: Is this correct Govinderjit Dhinsa
- RE: Is this correct Jos Boumans
- RE: Is this correct Chas Owens