요즘 정규식 연습중입니다 도와주세요 ㅠㅠ 정보
요즘 정규식 연습중입니다 도와주세요 ㅠㅠ본문
예제 )
> <img src="http://file.mutnam21.cafe24.com/Product/Images/17/8JSELFAA0017396/list_13051668624e674b91535a4.jpg" border="0" style="border:1 solid #D7D7D7"></a> </td>
</tr>
<tr>
<td align="center"><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td align="center" style="padding-top:13px; word-break:break-all; width:173px;">><img src="http://file.mutnam21.cafe24.com/Product/Icon/4835376234dbf4912b350f.gif" border="0" align=absbottom hspace=2 /><br>
<font style='color:#898989;font-size:12px;font-style:;font-weight:bold;text-decoration:'>핌콜 펭귄 맨투맨티<br></font></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center width=100%><font style='color:#A3A3A3;font-size:12px;font-style:normal;font-weight:;text-decoration:'>위트있는 디자인의 귀여운 펭귄 맨투맨 티셔츠<br>(2color Free사이즈)</font></td>
</tr>
</table><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center width=100%><font style='color:#999999;font-size:12px;font-style:;font-weight:bold;text-decoration:line-through'>23,000원</font> <a href="javascript:image_zoom('8JSELFAA0017396','AEAE0000','0')"><img src="http://img0001.echosting.cafe24.com/front/type_b/image/common/but_bbogi.gif" border="0" align="absbottom" vspace="1" /></a></td>
</tr>
</table><table cellpadding=0 width=100% cellspacing=0 border=0 align=center>
<tr>
<td align=center width=100% valign=top>할인 적용가</font>: <font style='color:#D93311;font-size:12px;font-style:;font-weight:bold;text-decoration:'>21900원</font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="55"></td>
</tr>
</table></td>
<!-- UNIT u3 끝 -->
<!-- UNIT u3 시작2 -->
<!-- UNIT u4 시작 -->
<td background="" style="background-repeat: repeat-y;"></td>
<!-- UNIT u4 끝 -->
<td align="center" width=25%><table width="173" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
이 텍스트의 가격을 추출하려고합니다 23,000원과 21900원을 추출하려고합니다 ㅠ
여기서 하나는 점찍힌거구 하나는 안찍힌거에요 ㅠㅠ
preg_match로 추출하려고합니다 ㅠㅠ 그런데...........
아 쉽다 하고 이렇게 짰는데 ㅠㅠ 안되네요 헐............도와주세요 ㅠㅠ
제가 짜본 패턴입니다 ㅠㅠ
preg_match("/\d{1,3}(,?\d{3})원/", $text, $TempPrince);
어떤게 문제일지요...ㅠㅠ
그리구 한가지 더 질문 ㅎㅎ
preg_match("/[가-힣]/", $text, $tempsubject); 이걸루 한글만 추출하려고합니다 ㅠㅠ
휴 ㅠㅠ 즐거운 정규식이 될때까지 흑흑
정규식 고수님 도와주세요 ㅠㅠ
> <img src="http://file.mutnam21.cafe24.com/Product/Images/17/8JSELFAA0017396/list_13051668624e674b91535a4.jpg" border="0" style="border:1 solid #D7D7D7"></a> </td>
</tr>
<tr>
<td align="center"><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td align="center" style="padding-top:13px; word-break:break-all; width:173px;">><img src="http://file.mutnam21.cafe24.com/Product/Icon/4835376234dbf4912b350f.gif" border="0" align=absbottom hspace=2 /><br>
<font style='color:#898989;font-size:12px;font-style:;font-weight:bold;text-decoration:'>핌콜 펭귄 맨투맨티<br></font></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center width=100%><font style='color:#A3A3A3;font-size:12px;font-style:normal;font-weight:;text-decoration:'>위트있는 디자인의 귀여운 펭귄 맨투맨 티셔츠<br>(2color Free사이즈)</font></td>
</tr>
</table><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td align=center width=100%><font style='color:#999999;font-size:12px;font-style:;font-weight:bold;text-decoration:line-through'>23,000원</font> <a href="javascript:image_zoom('8JSELFAA0017396','AEAE0000','0')"><img src="http://img0001.echosting.cafe24.com/front/type_b/image/common/but_bbogi.gif" border="0" align="absbottom" vspace="1" /></a></td>
</tr>
</table><table cellpadding=0 width=100% cellspacing=0 border=0 align=center>
<tr>
<td align=center width=100% valign=top>할인 적용가</font>: <font style='color:#D93311;font-size:12px;font-style:;font-weight:bold;text-decoration:'>21900원</font></td>
</tr>
</table></td>
</tr>
<tr>
<td height="55"></td>
</tr>
</table></td>
<!-- UNIT u3 끝 -->
<!-- UNIT u3 시작2 -->
<!-- UNIT u4 시작 -->
<td background="" style="background-repeat: repeat-y;"></td>
<!-- UNIT u4 끝 -->
<td align="center" width=25%><table width="173" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
이 텍스트의 가격을 추출하려고합니다 23,000원과 21900원을 추출하려고합니다 ㅠ
여기서 하나는 점찍힌거구 하나는 안찍힌거에요 ㅠㅠ
preg_match로 추출하려고합니다 ㅠㅠ 그런데...........
아 쉽다 하고 이렇게 짰는데 ㅠㅠ 안되네요 헐............도와주세요 ㅠㅠ
제가 짜본 패턴입니다 ㅠㅠ
preg_match("/\d{1,3}(,?\d{3})원/", $text, $TempPrince);
어떤게 문제일지요...ㅠㅠ
그리구 한가지 더 질문 ㅎㅎ
preg_match("/[가-힣]/", $text, $tempsubject); 이걸루 한글만 추출하려고합니다 ㅠㅠ
휴 ㅠㅠ 즐거운 정규식이 될때까지 흑흑
정규식 고수님 도와주세요 ㅠㅠ
댓글 전체
텍스트변수가 한줄만들어갈듯
태그 띄어쓰기 엔터 선처리 필요
태그 띄어쓰기 엔터 선처리 필요
인코딩 문제였더군요 ㅠㅠ 답변감사합니다 ^^