Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { final static String PANDO_RETURN_DATA = "pando://invoke/"; final static String EMPTY_STR = ""; final static String SPLIT_MARK = "/"; public static String getDataFromReturnUrl(String url) { String temp = url.replace(PANDO_RETURN_DATA, EMPTY_STR); String[] fuctionAndData = temp.split(SPLIT_MARK); if (fuctionAndData != null && fuctionAndData.length >= 1) { return fuctionAndData[0]; } return null; } }