I know this question is duplicated many time but I couldn't find the right answer.
If I have a string of urls such as:
"www.google.comwww.yahoo.comwww.ebay.com" (Assuming no spaces between links)
I want to extract each like individually and put them in array. I tried to use regex like:
    String[] sp= parts.split("\\www");
    System.out.println(parts[0]);
This didn't work! Any hint is appreciated

partsan array? You are putting the split version ofpartsin an array calledsp, yet you are printing out fromparts.