In the below sentence, I am trying to match title="data under first Double quotes".
<A title="Puppy Linux 5.0 Released" href="http://lwn.net/Articles/388754/" rel=bookmark><FONT color=#ffffff size=2><STRONG>Puppy Linux 5.0 Released
</STRONG></A><STRONG> | </STRONG>
I am trying with
sed 's/title=".*"/news/' news
But this is matching title="Puppy Linux 5.0 Released" href="http://lwn.net/Articles/388754/"
. How to get rid of the greedy nature of regex ?
I came to know that I have to use '?' somewhere to get rid of this, But how ?