Parse URL From Right - Jquery/Regex -
this question has reply here:
how can query string values in javascript? 73 answersi have url similar to:
url/search/searchresult?searchtext=firstname%20lastname
using jq, how can parse after "searchtext="
, while replacing %20
space.
i'm looking homecoming string in next format:
"firstname lastname"
i figure can done regex, struggle working it, examples helpful.
thanks
you can this
var value = decodeuricomponent(url.split('?')[1].split('=')[1]);
jquery regex
No comments:
Post a Comment