<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="view_ditail" id="contents_td" style='overflow-x:auto; word-break:break-all;'>
<TABLE width="100%" border=0> <TBODY> <TR> <TD class=board_write_table_style colSpan=10> <TABLE id=tbBoardView style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=board_read_textarea_cell_style vAlign=top colSpan=2 height=200><SPAN class=board_comment_text id=textContent> 학원명 : 참사랑내신스쿨</FONT></P> </FONT> </P> 모 집 : 초, 중 영어선생님</FONT></P> 초, 중 수학선생님</FONT></P> 전임선생님 및 보조선생님</FONT></P> </FONT> </P> 보 수 : 전임 - 140이상</FONT></P> 보조 - 타임당 20~30정도</FONT></P> </FONT> </P> 근 무 : 6개월이상가능자</FONT></P> </FONT> </P> 연락처 : 011 xxx 8217</FONT></P></SPAN></TD> <TD class=board_read_content_cell_style><INPUT id=fileName type=hidden name=fileName></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR><TR><TD> <TABLE width="100%" border=0> <TBODY> <TR> <TD> <TABLE id=tbComment style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> </P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR><TR><TD></TD></TR>
</td>
</tr>
<tr>
<td class="tr_line"> </td>
</tr>
</table
-------------------------------------------------------------------------------------------------------------------------------
우선 이 안에 있는 텍스트 값만 불러 오고 싶습니다.
조건은... <td class="view_ditail" 이 td 안에 있는 텍스트를 불러오는식으로 하려고합니다..
td 안에 또다른 많은 태그들이 있는데 어떤 정규식으로 풀어야할지 고민입니다.
답변 부탁드릴께요...<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 18:00:23 Regular Expression (정규표현식)에서 이동 됨]</div>
<tr>
<td class="view_ditail" id="contents_td" style='overflow-x:auto; word-break:break-all;'>
<TABLE width="100%" border=0> <TBODY> <TR> <TD class=board_write_table_style colSpan=10> <TABLE id=tbBoardView style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=board_read_textarea_cell_style vAlign=top colSpan=2 height=200><SPAN class=board_comment_text id=textContent> 학원명 : 참사랑내신스쿨</FONT></P> </FONT> </P> 모 집 : 초, 중 영어선생님</FONT></P> 초, 중 수학선생님</FONT></P> 전임선생님 및 보조선생님</FONT></P> </FONT> </P> 보 수 : 전임 - 140이상</FONT></P> 보조 - 타임당 20~30정도</FONT></P> </FONT> </P> 근 무 : 6개월이상가능자</FONT></P> </FONT> </P> 연락처 : 011 xxx 8217</FONT></P></SPAN></TD> <TD class=board_read_content_cell_style><INPUT id=fileName type=hidden name=fileName></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR><TR><TD> <TABLE width="100%" border=0> <TBODY> <TR> <TD> <TABLE id=tbComment style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> </P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR><TR><TD></TD></TR>
</td>
</tr>
<tr>
<td class="tr_line"> </td>
</tr>
</table
-------------------------------------------------------------------------------------------------------------------------------
우선 이 안에 있는 텍스트 값만 불러 오고 싶습니다.
조건은... <td class="view_ditail" 이 td 안에 있는 텍스트를 불러오는식으로 하려고합니다..
td 안에 또다른 많은 태그들이 있는데 어떤 정규식으로 풀어야할지 고민입니다.
답변 부탁드릴께요...<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 18:00:23 Regular Expression (정규표현식)에서 이동 됨]</div>
댓글 1개
15년 전
preg_match("#<td class=\"view_ditail\"[^>]+\>(.*)</td></tr><tr><td>#is", $str, $matches);
echo trim($matches[1]);
결과 :
<TABLE width="100%" border=0> <TBODY> <TR> <TD class=board_write_table_style colSpan=10> <TABLE id=tbBoardView style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=board_read_textarea_cell_style vAlign=top colSpan=2 height=200><SPAN class=board_comment_text id=textContent> 학원명 : 참사랑내신스쿨</FONT></P> </FONT> </P> 모 집 : 초, 중 영어선생님</FONT></P> 초, 중 수학선생님</FONT></P> 전임선생님 및 보조선생님</FONT></P> </FONT> </P> 보 수 : 전임 - 140이상</FONT></P> 보조 - 타임당 20~30정도</FONT></P> </FONT> </P> 근 무 : 6개월이상가능자</FONT></P> </FONT> </P> 연락처 : 011 xxx 8217</FONT></P></SPAN></TD> <TD class=board_read_content_cell_style><INPUT id=fileName type=hidden name=fileName></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR><TR><TD> <TABLE width="100%" border=0> <TBODY> <TR> <TD> <TABLE id=tbComment style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> </P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
echo trim($matches[1]);
결과 :
<TABLE width="100%" border=0> <TBODY> <TR> <TD class=board_write_table_style colSpan=10> <TABLE id=tbBoardView style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=board_read_textarea_cell_style vAlign=top colSpan=2 height=200><SPAN class=board_comment_text id=textContent> 학원명 : 참사랑내신스쿨</FONT></P> </FONT> </P> 모 집 : 초, 중 영어선생님</FONT></P> 초, 중 수학선생님</FONT></P> 전임선생님 및 보조선생님</FONT></P> </FONT> </P> 보 수 : 전임 - 140이상</FONT></P> 보조 - 타임당 20~30정도</FONT></P> </FONT> </P> 근 무 : 6개월이상가능자</FONT></P> </FONT> </P> 연락처 : 011 xxx 8217</FONT></P></SPAN></TD> <TD class=board_read_content_cell_style><INPUT id=fileName type=hidden name=fileName></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR><TR><TD> <TABLE width="100%" border=0> <TBODY> <TR> <TD> <TABLE id=tbComment style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD> </P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3030 | 14년 전 | 1170 | ||
| 3029 |
|
14년 전 | 1293 | |
| 3028 | 14년 전 | 1041 | ||
| 3027 | 14년 전 | 849 | ||
| 3026 | 14년 전 | 1036 | ||
| 3025 |
마케팅메지션
|
14년 전 | 1155 | |
| 3024 | 14년 전 | 862 | ||
| 3023 | 14년 전 | 848 | ||
| 3022 |
|
14년 전 | 1221 | |
| 3021 | 14년 전 | 1017 | ||
| 3020 | 14년 전 | 906 | ||
| 3019 | 14년 전 | 1060 | ||
| 3018 | 14년 전 | 1231 | ||
| 3017 |
마케팅메지션
|
14년 전 | 937 | |
| 3016 |
|
14년 전 | 973 | |
| 3015 | 14년 전 | 667 | ||
| 3014 | 14년 전 | 883 | ||
| 3013 | 14년 전 | 1093 | ||
| 3012 | 14년 전 | 925 | ||
| 3011 | 14년 전 | 924 | ||
| 3010 | 14년 전 | 1146 | ||
| 3009 |
마케팅메지션
|
14년 전 | 1659 | |
| 3008 | 14년 전 | 580 | ||
| 3007 | 14년 전 | 1018 | ||
| 3006 |
마케팅메지션
|
14년 전 | 1000 | |
| 3005 |
마케팅메지션
|
14년 전 | 896 | |
| 3004 | 14년 전 | 876 | ||
| 3003 |
마케팅메지션
|
14년 전 | 990 | |
| 3002 | 14년 전 | 776 | ||
| 3001 | 14년 전 | 2010 | ||
| 3000 | 14년 전 | 775 | ||
| 2999 | 14년 전 | 1667 | ||
| 2998 | 14년 전 | 759 | ||
| 2997 |
|
14년 전 | 848 | |
| 2996 | 14년 전 | 938 | ||
| 2995 | 14년 전 | 893 | ||
| 2994 | 14년 전 | 1598 | ||
| 2993 |
마케팅메지션
|
14년 전 | 1005 | |
| 2992 |
마케팅메지션
|
14년 전 | 961 | |
| 2991 |
마케팅메지션
|
14년 전 | 1130 | |
| 2990 | 14년 전 | 972 | ||
| 2989 | 14년 전 | 792 | ||
| 2988 |
|
14년 전 | 941 | |
| 2987 | 14년 전 | 817 | ||
| 2986 | 14년 전 | 1035 | ||
| 2985 | 14년 전 | 580 | ||
| 2984 | 14년 전 | 958 | ||
| 2983 | 14년 전 | 965 | ||
| 2982 | 14년 전 | 910 | ||
| 2981 | 14년 전 | 835 | ||
| 2980 |
마케팅메지션
|
14년 전 | 1171 | |
| 2979 |
마케팅메지션
|
14년 전 | 903 | |
| 2978 |
|
14년 전 | 844 | |
| 2977 |
|
14년 전 | 875 | |
| 2976 | 14년 전 | 818 | ||
| 2975 | 14년 전 | 816 | ||
| 2974 | 14년 전 | 895 | ||
| 2973 | 14년 전 | 1286 | ||
| 2972 | 14년 전 | 669 | ||
| 2971 | 14년 전 | 732 | ||
| 2970 | 14년 전 | 898 | ||
| 2969 | 14년 전 | 914 | ||
| 2968 | 14년 전 | 775 | ||
| 2967 | 14년 전 | 1354 | ||
| 2966 | 14년 전 | 856 | ||
| 2965 |
|
14년 전 | 1086 | |
| 2964 | 14년 전 | 1475 | ||
| 2963 | 14년 전 | 957 | ||
| 2962 |
|
14년 전 | 978 | |
| 2961 |
|
14년 전 | 886 | |
| 2960 | 14년 전 | 838 | ||
| 2959 | 14년 전 | 1182 | ||
| 2958 | 14년 전 | 934 | ||
| 2957 |
|
14년 전 | 812 | |
| 2956 |
|
14년 전 | 1193 | |
| 2955 |
|
14년 전 | 2341 | |
| 2954 | 14년 전 | 932 | ||
| 2953 | 14년 전 | 1051 | ||
| 2952 |
senseme
|
14년 전 | 1184 | |
| 2951 |
뱌미3059
|
14년 전 | 903 | |
| 2950 |
|
14년 전 | 950 | |
| 2949 | 14년 전 | 998 | ||
| 2948 | 14년 전 | 870 | ||
| 2947 |
|
14년 전 | 959 | |
| 2946 |
개발조각사
|
14년 전 | 2450 | |
| 2945 |
개발조각사
|
14년 전 | 1760 | |
| 2944 |
개발조각사
|
14년 전 | 6049 | |
| 2943 |
개발조각사
|
14년 전 | 1295 | |
| 2942 |
개발조각사
|
14년 전 | 1568 | |
| 2941 |
개발조각사
|
14년 전 | 1931 | |
| 2940 |
개발조각사
|
14년 전 | 3658 | |
| 2939 |
개발조각사
|
14년 전 | 2988 | |
| 2938 |
개발조각사
|
14년 전 | 2063 | |
| 2937 |
개발조각사
|
14년 전 | 1570 | |
| 2936 |
개발조각사
|
14년 전 | 4019 | |
| 2935 | 14년 전 | 1097 | ||
| 2934 | 14년 전 | 876 | ||
| 2933 | 14년 전 | 1051 | ||
| 2932 | 14년 전 | 980 | ||
| 2931 | 14년 전 | 978 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기