bpat1434 wrote:No, no I don't because the .* means 0 or more.... so if it's not there.... the 0 will cover it.... so it's fine.
In case you didn't know, regular experssions are "greedy," meaning they take as much as they can. So if you had two links like that...let's say you had this:
<a target="_BLANK" href="http://www.marketleap.com/publinkpop/">Link</a><br />
<a target="_BLANK" href="http://www.marketleap.com/publinkpop/">Another Link</a>
In the first .* PHP would match this:
target="_BLANK" href="http://www.marketleap.com/publinkpop/">Link</a><br />
<a target="_BLANK"
This is because PHP will try to take as much as possible, but the ? makes it "ungreedy."