少年阿賓

          那些青春的歲月

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            500 Posts :: 0 Stories :: 135 Comments :: 0 Trackbacks

          package org.litsoft.air.servlet;

          import java.util.regex.Matcher;
          import java.util.regex.Pattern;

          public class TestUrl {
           private static final String Url = " public static String result(String url){
            String result=null;
            String regex="([^?]+$)";
            Pattern pattern=Pattern.compile(regex);
            Matcher matcher=pattern.matcher(url);
            while(matcher.find()){
             result=matcher.group();
            }
            return result;
           }
           public static void main(String[] args) {
            String result=new TestUrl().result(Url);
            System.out.println("result="+result);
           }

          }


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 加查县| 潞西市| 廉江市| 日土县| 合作市| 彰化县| 定结县| 哈尔滨市| 文山县| 邳州市| 柯坪县| 东宁县| 遂溪县| 剑阁县| 庆城县| 出国| 宝坻区| 东乡| 石林| 金华市| 松潘县| 石阡县| 衡阳县| 喜德县| 孟州市| 洪泽县| 罗平县| 文登市| 通榆县| 临高县| 永春县| 镇沅| 东至县| 荔浦县| 新和县| 东乌| 苏尼特左旗| 黎平县| 宜川县| 故城县| 句容市|