Hi,
If I write this:
Code:
echo "This is <EM>string</EM>" | grep -E '<.+?>'
I get the folowing highlight:
Code:
This is a <EM>string</EM>
Why is it all highlighted instead of only the occurrences of "<EM>"?
I also tested it on regex sites (regex101.com) and it works fine. Why does grep behave differently?