grep -E ungreedy
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?)
Tony
MacBook Air, MacBook, Mac mini-OTHER, Mac OS X (10.7.3)