> perl -p -e 'm/r.*?e/g' foo
> but this prints the entire file to stdout
The -p says to print each line, replace that with -n instead to loop
through the files and not print, then modify your expression to be
something like this:
perl -n -e 'm/r.*?e/g && print' foo
Now, I'm not sure that your regexp is correct to do what you want (I'm
not familiar with your "lazy quantifier" terminology).
-jan-
--
Jan L. Peterson
Semi-Unemployed "Computer Facilitator"
http://www.peterson.ath.cx/~jlp/resume.html
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list