import java.util.HashMap;
import java.util.Map;
public class StringParsingDemo {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String url = "http://localhost:8080/PrismWeb/REPORT/REPORTS_AggSectorRpt/ACCOUNT/$$BENCHMARK_CD$$/DATE/$$DATE$$/XML/TREE";
String delims = "[/]+";
String[] tokens = url.split(delims);
Map
for(int i=0; i
String value = tokens[i];
String key = null;
if(value.contains("$") && i > 0 ){
key = tokens[i-1];
mapecm.put(key, value);
}
}
System.out.println("Mapis " + mapecm);
}
}