This page says that any multiplier in a regex can be suffixed with '?' to do a non greedy search. However, I can't figure out how to make it work in grep.
grep -E '^.*?$' file
prints the whole text.
How can I do a non greedy regex search with grep?