Here you can find the source of substringInBetween(String name, String prefix, String delimiter)
public static String substringInBetween(String name, String prefix, String delimiter)
//package com.java2s; // Licensed to the Apache Software Foundation (ASF) under one public class Main { public static String substringInBetween(String name, String prefix, String delimiter) {/* w w w . j a va 2s.co m*/ int startPos = 0; if (prefix != null) startPos = prefix.length() + 1; int endPos = name.indexOf(delimiter, startPos); if (endPos > 0) return name.substring(startPos, endPos); return null; } }