> perl -i -p -e 's/^(\d{2}\t\d{2}\t\d{2})/g' This was the 1st thing that I > tried; it doesn't work. It was initially easy but different things kept > appearing that forced me to use > 1 statements on the command line. Negating what I want seems like it ought to be simple. > > > What have you tried? Have you seen the -i option? > > -----Original Message----- > > > I would like to modify a file 'in place' at the command line with > regexes. The file changes daily and is messy. Can one negate a regex > itself as opposed to a class of regular expressions? If I could remove > everything but that selected by m/\d{2}\t\d{2}\t\d{2}/g life would be > better as I know it. Thanx > > -- > _______________________________________________ > > Search for businesses by name, location, or phone number. -Lycos Yellow > Pages > > http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default > .asp?SRC=lycos10 > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response>
> -- _______________________________________________ Search for businesses by name, location, or phone number. -Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>