Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { /** * Extract root url from Capi header * @param link * @return a String containing url */ private static String extractRootUrl(String link) { return link.substring(link.indexOf('<') + 1, link.indexOf('>')); } }