[PHP] PHP로 HTML Table Parse
PHP의 DOM 이용해서 파싱해보려 별짓을 다하다가 망하고 결국은 정규식으로 쉽게 해결하였다. Parse an HTML Table with PHP http://blog.mspace.fm/2009/10/14/parse-an-html-table-with-php/ function parseTable($html) { // Find the table preg_match("/ .*?/s", $html, $table_html); // Get title for each row preg_match_all("/(.*?)/", $table_html[0], $matches); $row_headers = $matches[1]; // Iterate each row preg_match_all("/ (.*?)/s", $table_h..
웹프로그래밍/PHP
2010. 5. 27. 19:05
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- centos
- javascript
- iis
- mssql
- macos
- API
- CSS
- Wordpress
- iphone
- laravel
- IE
- ASP
- 한글
- 워드프레스
- Docker
- Android
- nginx
- nodejs
- Mac
- git
- JQuery
- Linux
- IOS
- JSON
- classic asp
- 안드로이드
- Debug
- PHP
- sencha touch
- Prototype
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
글 보관함