Have string strng = "<title>text1</title><title>text2</title>";
How to get array like
arr[0] = "text1";
arr[1] = "text2";
I try to use this, but in result have, and not array text1</title><title>text2
Pattern pattern = Pattern.compile("<title>(.*)</title>");
Matcher matcher = pattern.matcher(strng);
matcher.matches();