in reply to Re^2: grep question using multiple lines
in thread grep question using multiple lines
Indeed your match is greedy. Still we can change it as follows:
$ perl -nle 'print $1 while /constant=(^ +)\s/g' < test.txt barney@gmail.com wilma@aol.com
|
|---|