java
String Referer="adasdfsbb/ass?scl=adasdfas&asd=a";
Pattern p=Pattern.compile("(^|&|\?)scl=([^&]*)(&|$)");
Matcher m=p.matcher(Referer);
if(m.find()) { return m.group(2); }
js
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}