2011-03-14 45 views
3
eregi("<input[[:space:]]+type=[\"\']?hidden[\"\']?[[:space:]]+value=[\"\']?([^> \"\']+)[\"\']?[[:space:]]+name=[\"\']?(form_page_origine|form_origine|page_origine)[\"\']?[[:space:]]*/?>" 

如何將其切換到preg_match?謝謝。在PHP中將POSIX模式轉換爲PCRE(eregi to preg_match)

+1

*(相關)* [最佳方法解析HTML](http://stackoverflow.com/questions/3577641/best-methods-to-parse-html/3577662#3577662) – Gordon 2011-03-14 08:33:32

回答