<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Oracle神諭

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      284 隨筆 :: 9 文章 :: 106 評論 :: 0 Trackbacks

      以前的做分隔符獲取一個個字符串很是麻煩,其實JDK中的String 類已經很好的解決了這個問題。正則表達式確實是個好東西!

    split

    public String[] split(String regex)
    Splits this string around matches of the given regular expression.

    This method works as if by invoking the two-argument split method with the given expression and a limit argument of zero. Trailing empty strings are therefore not included in the resulting array.

    The string "boo:and:foo", for example, yields the following results with these expressions:

    Regex Result
    : { "boo", "and", "foo" }
    o { "b", "", ":and:f" }

    Parameters:
    regex - the delimiting regular expression
    Returns:
    the array of strings computed by splitting this string around matches of the given regular expression
    Throws:
    PatternSyntaxException - if the regular expression's syntax is invalid
    Since:
    1.4
    See Also:
    Pattern
    posted on 2005-09-29 16:23 java世界暢談 閱讀(1792) 評論(1)  編輯  收藏 所屬分類: JAVA

    評論

    # re: String.class 的split方法 2006-01-07 17:41 山之上,國有殤
    呵呵 地球人都知道  回復  更多評論
      

    主站蜘蛛池模板: 亚洲精品无AMM毛片| 免费一区二区三区四区五区| 久久久久亚洲AV无码专区网站| 亚洲国产精品成人精品软件| 日韩精品极品视频在线观看免费| 亚洲va无码va在线va天堂| 国产免费爽爽视频在线观看 | 最近更新免费中文字幕大全| 久久亚洲2019中文字幕| 97在线免费观看视频| 亚洲国产精品无码久久SM| 午夜免费福利小电影| 亚洲视频在线免费看| 国产成人免费午夜在线观看 | 日本不卡高清中文字幕免费| 亚洲国产成人AV网站| 亚洲免费在线视频观看| 亚洲精品91在线| 深夜福利在线视频免费| 亚洲综合色区在线观看| 免费视频成人片在线观看| 激情综合亚洲色婷婷五月 | 亚洲欧洲日产国码高潮αv| 国产在线观看免费av站| 亚洲精品乱码久久久久久下载 | 免费国产成人午夜电影| 中文字幕av免费专区| 亚洲神级电影国语版| 免费看香港一级毛片| 中文字幕在线免费播放| 亚洲精品偷拍无码不卡av| 四虎免费永久在线播放| 一个人免费视频在线观看www| 亚洲国产午夜电影在线入口| 四虎永久成人免费| 久久国产乱子伦精品免费不卡| 亚洲av专区无码观看精品天堂| 亚洲国产成人久久精品99| 114级毛片免费观看| 无码毛片一区二区三区视频免费播放| 亚洲成熟xxxxx电影|