ElegantCoder::wiki();
정규표현식(PHP, preg_match()기준입니다)
/<\s*img[^>]*>/mi
#(/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+/)|(//.*)#
<td><table width='192' border='0' cellspacing='0' cellpadding='0'>
<tr height='27'>
<td width='27' align='center'background='http://img.kbstar.com/lot/main_num_bg.gif' class='lot_number'>02</td>
<td width='5'></td>
<td width='27' align='center'background='http://img.kbstar.com/lot/main_num_bg.gif' class='lot_number'>03</td>
<td width='5'></td>
<td width='27' align='center'background='http://img.kbstar.com/lot/main_num_bg.gif' class='lot_number'>04</td>
<td width='5'></td>
<td width='27' align='center'background='http://img.kbstar.com/lot/main_num_bg.gif' class='lot_number'>05</td>
<td width='5'></td>
<td width='27' align='center'background='http://img.kbstar.com/lot/main_num_bg.gif' class='lot_number'>20</td>
<td width='5'></td>
<td width='27' align='center'background='http://img.kbstar.com/lot/main_num_bg.gif' class='lot_number'>24</td>
<td width='5'></td>
</tr>
preg_match_all('/(?<=lot_number\'>)\d\d(?=<\/td>)/', $str, $matches);
array (
0 =>
array (
0 => '02',
1 => '03',
2 => '04',
3 => '05',
4 => '20',
5 => '24',
),
)