Here's me function with regexp:
preg_match_all('|<span class=\"Menu1\">(.*?)</td>|U',$contents,$wynik2);
It works with:
<tr>
<td width="30%" ><span class="Menu"> Nazwa zawdsdu: </td>
<td width="70%"> <span class="Menu1">PRACOWNIK BARU </td>
</tr>
but it doesn't work with:
<td width="70%"> <span class="Menu1">PRACA W MC DONALDS PRACE PORZĄDKOWE, PRZYJĘCIE DOSTAWY
WYMAGANA KSIĄŻECZKA SANEPIDOWSKA, CHĘCI DO PRACY
KONTAKT TEL. 794295401 </td>
I've got empty array. I think its caused by 'new line'. How can i fix it?