No, it does not override the greediness. The regexp still matches that longest string. But this is just a look ahead. Once the match/substitution is made, the regexp engine starts searching again after the first character matched.
amon below has a great graphical view of what is happening (Re: look-ahead greed changed between perl releases?).
In reply to Re^3: look-ahead greed changed between perl releases?
in thread look-ahead greed changed between perl releases? by raygun
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>