Here you can find the source of TruncateUrlPage(String strURL)
private static String TruncateUrlPage(String strURL)
//package com.java2s; //License from project: LGPL public class Main { private static String TruncateUrlPage(String strURL) { String strAllParam = null; String[] arrSplit = null; strURL = strURL.trim().toLowerCase(); arrSplit = strURL.split("[?]"); if (strURL.length() > 1) { if (arrSplit.length > 1) { if (arrSplit[1] != null) { strAllParam = arrSplit[1]; }/*from w w w .j a va2 s . c o m*/ } } return strAllParam; } }