preg match °Ë»ö´ë»ó¿¡ ¿£ÅÍ°¡ µé¾î°£°æ¿ì´Â °Ë»ö¿É¼Ç¿¡ s ¸¦ Ãß°¡Ç϶ó. |
|
|
 |
11³â Àü |
$str="<td class=mw_basic_view_subject> aaa bbb ccc </td>";
$preg='|<td class=mw_basic_view_subject>(.*)</td>|U';
preg_match($preg, $str, $out3);
print_r($out3);
°á°ú :
Array
(
[0] => <td class=mw_basic_view_subject> aaa bbb ccc </td>
[1] => aaa bbb ccc
)
## °Ë»ö´ë»ó¿¡ ¿£ÅÍ°¡ µé¾î°£°æ¿ì
$str="<td class=mw_basic_view_subject>aaa
bbb
ccc
</td>";
$preg='|<td class=mw_basic_view_subject>(.*)</td>|U';
preg_match($preg, $str, $out3);
print_r($out3);
## °Ë»ö´ë»ó¿¡ ¿£ÅÍ°¡ µé¾î°£°æ¿ì´Â °Ë»ö¿É¼Ç¿¡ s ¸¦ Ãß°¡Ç϶ó..
$str="<td class=mw_basic_view_subject>aaa
bbb
ccc
</td>";
$preg='|<td class=mw_basic_view_subject>(.*)</td>|Us';
preg_match($preg, $str, $out3);
print_r($out3);
Array
(
[0] => <td class=mw_basic_view_subject>aaa
bbb
ccc
</td>
[1] => aaa
bbb
ccc
) |
|
̵̧ : 489 |
̵̧
¸ñ·Ï
|
|