"([^\\.]+)\\.(\\w+)([<=>]{1,2})([^\\.]+)\\.(\\w+)"

解决方案 »

  1.   

    String str = "Ta.a >= Tb.a";
    Pattern p = Pattern.compile("(.+)\\.([^<=>]+)([<=>]{1,2})(.+)\\.(.+)");
    Matcher m = p.matcher(str);
    System.out.println(m.find());
    System.out.println(m.groupCount());

    System.out.println(m.group(1));
    System.out.println(m.group(2));
    System.out.println(m.group(3));
    System.out.println(m.group(4));
    System.out.println(m.group(5));
    好了,这回可以了!
    大家来这里是学习,不是吵架的
      

  2.   

    说的对,再次向你表示歉意,请到
    http://community.csdn.net/Expert/topic/3930/3930472.xml?temp=.8179895
    接分吧,以后还请多照顾
      

  3.   

    (Ta.a)( )?(>=)|(<=)|=|(<>)|>|<( )?(Ta.a)
    我不太清楚你要匹配Ta,a,>=,Tb,a 为什么你表达式里没有Ta.a