343 Views 2 Replies Latest reply: Apr 30, 2012 7:10 AM by Tony T1
I can't seem to get ungreedy (?) to work in grep.
echo "This is a <EM>first</EM> test" | grep -E -o '<.+?>'
returns <EM>first</EM> (not <EM> </EM>)
(I can use '<[^>]+>', but why isn't '<.+?>' working?)