On Wed, 27 Sep 2006 13:11:17 -0600 "Gerald Wheeler" <[EMAIL PROTECTED]> wrote:
> I am looking for: ab1 in line1 > and looking for: ab2 in line 2 > > actually ab1 and ab2 immediately follow the last "/" (there are > numerous "/" on the line (w/o quotes)) > > These are not working. can some explain what these say and what they > should say (syntax) to return the results I'm looking for: if ab1/ab2 > are in the line, return true. > > /^[^\#]*ab1/,@lines > > /^[^\#]*ab2/,@lines Presumeably you want a match against '/ab1' In which case you might just get by with /\/ab1/ But you may need to provide a few more specifications and example data Owen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>