倒,写一个模式匹配可以搞定。
你可以去看看唠叨老大的blog。那里面有。

解决方案 »

  1.   

    echo "第一章 相依为命 宇文化及卓立战舰指挥台之上,极目运河两岸。    此时天尚未亮,在五艘巨舰的灯炷映照下,天上星月黯然失色,似在显示他宇文阀的兴起,使南方士族亦失去往日的光辉。";
      

  2.   

    Convert HTML to text// $document should contain an HTML document.
    // This will remove HTML tags, javascript sections
    // and white space. It will also convert some
    // common HTML entities to their text equivalent.$search = array ("'<script[^>]*?>.*?</script>'si",  // Strip out javascript
                    "'<style[^>]*?>.*?</style>'si",  // Strip out css
                     "'<[\/\!]*?[^<>]*?>'si",           // Strip out html tags
                     "'([\r\n])[\s]+'",                 // Strip out white space
                     "'&(quot|#34);'i",                 // Replace html entities
                     "'&(amp|#38);'i",
                     "'&(lt|#60);'i",
                     "'&(gt|#62);'i",
                     "'&(nbsp|#160);'i",
                     "'&(iexcl|#161);'i",
                     "'&(cent|#162);'i",
                     "'&(pound|#163);'i",
                     "'&(copy|#169);'i",
                     "'&#(\d+);'e");                    // evaluate as php$replace = array ("",
                      "",
                      "\\1",
                      "",
                      "&",
                      "<",
                      ">",
                      " ",
                      chr(161),
                      chr(162),
                      chr(163),
                      chr(169),
                      "chr(\\1)");$text = preg_replace ($search, $replace, $document);
     
      

  3.   

    用substr组合strpos就可以,能不用正则就不用
      

  4.   

    鄙视啊 问人家小偷程序怎么做不就得了
    晕死
    fopen 和楼上说 用substr组合strpos 就可以提出来啊
    主要还得分析页面的代码规律