
Untitled
By: a guest on
May 5th, 2012 | syntax:
None | size: 0.45 KB | hits: 12 | expires: Never
how to get the string after specific substring jquery
var url="http://localhost/elephanti2/chaink/stores/stores_ajax_page/5/b.BusinessName/asc/1/11"
var url= "http://localhost/elephanti2/chaink/stores/stores_ajax_page/5/b.BusinessName/asc/1/11"
re = /^([^/]*/){7}(.+)/
result = url.match(re)[2]
var url="http://localhost/elephanti2/chaink/stores/stores_ajax_page/5/b.BusinessName/asc/1/11";
var endPath = url.replace(/^.*/stores_ajax_page//, "");