On Aug 2, Messervy, Joe M said: >Ok, I feel stupid the test should have been perl -p -i -e 's/\nmachine//g' >myfile ... but it still doesnt work :( Well, $_ is only ONE LINE of the file. So it can't possibly start with a newline and then have other text. Perhaps you want s/^machine//; -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Re: regular expression Chas Owens
- Re: regular expression chris robinson
- Re: regular expression Chas Owens
- Regular Expression Satheesh Ramakrishnan
- Re: Regular Expression Jeff Pinyan
- Re: Regular Expression rob chanter
- Re: Regular Expression ISO-8859-1
- Re: Regular Expression Mathew Hennessy
- RE:regular expression Jorge Goncalvez
- regular expression Jeff 'japhy/Marillion' Pinyan
- regular expression Messervy, Joe M
- Re: regular expression Jeff 'japhy/Marillion' Pinyan
- Regular Expression Lilian Alvarenga Caravela Godoy
- Re: Regular Expression John W. Krahn
- RE: Regular Expression John Edwards
- RE: Regular Expression Mark Anderson
- regular expression LADDO
- Re: regular expression Janek Schleicher
- Re: regular expression Jeff 'japhy' Pinyan
- Re: regular expression Janek Schleicher