-4
<td><strong>Puesto:</strong></td>
<td>PUESTO CABECERA MUNICIPAL                                                                                               </td>

I'm have this expression regular

preg_match("%<td><strong>Puesto:</strong></td><td>(.*)<\/td>%si",$data,$puesto); but not it works

Elin
  • 6,507
  • 3
  • 25
  • 47

1 Answers1

0

You might want this:

$ok = preg_match('%<strong>Puesto:</strong>.+?<td>(.+?)</td>%si', $data, $puesto);

Don't forget to use ? to make expressions into non-greedy!

Nav
  • 66
  • 4
  • Perfect, thank you, and the qualification to my question was of - 3 point, it seems unfair it, there is question minus interesting and not have qualification bad – user3191964 Mar 20 '15 at 04:33