String str = "index.html?sex=1&m=RootFacade@ondelete&id=4&name=";
System.out.println("...." + str.replaceAll("([^=m]+)=([^&]*)", "$1=||"));
String str = "index.html?sex=1&m=RootFacade@ondelete&id=4&name=";
System.out.println("...." + str.replaceAll("([^=m]+)=([^&]*)", "$1=||"));