Quantcast
Channel: BlogoSfera » need
Viewing all articles
Browse latest Browse all 40

java regexp get more than need

$
0
0

I have following regexp http://[a-z./].*(js) and the string efwefewfhttp://assets.main.com/zepto-1.1.3.min.js fffhttp://assets.main.com/zepto-1.1.3.min.js Code: List<String> kk = new ArrayList<String>(); while (urlMatcher.find()){ kk.add(urlMatcher.group()); } This regexp output is http://assets.main.com/zepto-1.1.3.min.js fffhttp://assets.main.com/zepto-1.1.3.min.js but should be 2 strings in result How change regexp to get two string as result?

The post java regexp get more than need appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 40

Trending Articles