到google搜索吧,搜索:正则表达式 java
这是我的搜索结果:
http://www.google.com/search?hl=zh-CN&newwindow=1&q=%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F+java&lr=

解决方案 »

  1.   

    class TestString 
    {
    public static void main(String[] args) 
    {
    String htm="<html sodfsldfksd~~~~~~~~~~sdfs> hello world </html>";
    int index=htm.indexOf("hello world");
    String pre=htm.substring(0,index);
    htm=htm.replaceAll(pre,"");
    String suf=htm.substring(11);
    htm=htm.replaceAll(suf,"");
    System.out.println(htm);
    }
    }试试这段代码,能不能实现你的要求?
      

  2.   

    谢谢各位,可以在这个地方来讨论一下.............http://community.csdn.net/Expert/topic/3506/3506609.xml?temp=.9692804
      

  3.   

    我的问题又来了~~~~~~~~~~~~~~~http://community.csdn.net/Expert/topic/3516/3516492.xml?temp=.9162561