http://localhost:8080/RestPOC/rest/emp/users?limit(30,780)
how can i get limit parameters in queryparam???
You can use the location object to retrieve the parameters.
Take a look at one key search which may be your matter of interest.
search
Check this SO LINK
You can use regExp to find the values in paranthesis and split() to split by comma.
regExp
split()
var url = "http://localhost:8080/RestPOC/rest/emp/users?limit(30,780)"; var regExp = /\(([^)]+)\)/; var limits = regExp.exec(url)[1].split(','); console.log(limits)