I have a little problem and don't find any solution :(
I try to replace this text :
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td width="25%"><a href="http://www.test.com/myfile.pdf?min" target="_blank">Menus 18 €</a></div></td>
<td width="25%"><a href="http://www.test.com/myfile.pdf?min" target="_blank">Menus 24 et 26 €</a></div></td>
<td width="25%"><a href="http://www.test.com/myfile.pdf?min" target="_blank">Menus 30 et 37 € </a></div></td>
<td width="25%"><a href="http://www.test.com/myfile.pdf?min">La Carte détaillée <br>
(Entrées - Viandes - Poissons)</a></td>
</tr>
</tbody>
</table>
with this regex :
/<a.*?href=\"(.+.pdf\?min)\".*?>(.*?)<\/a>/s
But instead of returning each link replaced by ok, it replaces only one occurrence. I thought the greedy quantifier .*? could do the trick but not...
To try it : https://regex101.com/r/iF7dV0/1
Thanks in advance!
Peter