1String str = "Location \"Welcome to india\" Bangalore " +
2 "Channai \"IT city\" Mysore";
3
4List<String> list = new ArrayList<String>();
5Matcher m = Pattern.compile("([^\"]\\S*|\".+?\")\\s*").matcher(str);
6while (m.find())
7 list.add(m.group(1)); // Add .replace("\"", "") to remove surrounding quotes.
8
9
10System.out.println(list);