看板
[ java ]
討論串[問題] 如何找到第一個match的字串
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
我的code你看一下,都是抓到第一個 a那一個. String mlyric="\"http://cache.baidu.com?a\" \"http://cache.baidu.com?b\"" ;Pattern regex = Pattern.compile("\"http://cache.ba
(還有48個字)
內容預覽:
mlyric 是這個網頁:. http://www.baidu.com/s?wd=%90%DB%C8%E7%B3%B1%CB%AE+filetype%3Alrc. private void parseLyric(String link) throws MalformedURLException{.
(還有432個字)
內容預覽:
就是現在我要parse一個網頁的原始檔. 想找出裡面有關網頁連結的字串. Pattern regex = Pattern.compile("\"http://cache.baidu.com.*?\"");. Matcher matcher = regex.matcher(mlyric);. if(m
(還有60個字)
首頁
上一頁
1
下一頁
尾頁