看板 [ java ]
討論串[問題] java.util.regex.Pattern
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者superlubu (叔叔你人真好)時間13年前 (2012/10/29 23:16), 編輯資訊
0
0
1
內容預覽:
Matcher m = Pattern.compile("\\d*").matcher("akr84w");. int cnt = 0;. while (m.find()) {. System.out.println(cnt++ + " (" + m.start() + " - " + m.end(
(還有26個字)

推噓0(0推 0噓 4→)留言4則,0人參與, 最新作者superlubu (叔叔你人真好)時間13年前 (2012/10/29 14:06), 編輯資訊
0
0
1
內容預覽:
呃... 推文是我搞錯... 去看一次 API. Matcher.group() :. Returns the input subsequence matched by the previous match.. 而 Pattern.matcher() method 回傳的 Matcher 物件, 是
(還有19個字)

推噓0(0推 0噓 4→)留言4則,0人參與, 最新作者coolcomm (coolcomm)時間13年前 (2012/10/29 11:52), 編輯資訊
0
0
1
內容預覽:
http://ppt.cc/ZbBl. 24:. int number=Integer.parseInt(Pattern.compile("\\d*").matcher(capacity).group());. 請問為什麼每次到了第24行就會拋出IllegalStateException?. 剛剛把
(還有1個字)
首頁
上一頁
1
下一頁
尾頁