Here you can find the source of subString(String parentStr, String startStr, String endStr)
public static String subString(String parentStr, String startStr, String endStr)
//package com.java2s; public class Main { public static String subString(String parentStr, String startStr, String endStr) { return parentStr.substring(parentStr.indexOf(startStr) + startStr.length(), parentStr.indexOf(endStr)); }//from www . j a va2 s .c o m }