fork(4) download
  1. <?php
  2.  
  3. $text = "<td class=x11111111111111111 width=140 style='>1111111111111111111111111111<td>11111111111111border-top:none;border-left:none; width:107pt'>";
  4.  
  5. echo preg_replace("/<([a-z][a-z0-9]*)[^>]*?(\/?)>/i",'<$1$2>', $text);
Success #stdin #stdout 0.03s 52432KB
stdin
Standard input is empty
stdout
<td>1111111111111111111111111111<td>11111111111111border-top:none;border-left:none; width:107pt'>