I\'m trying to retrieve the category part this string \"property_id=516&category=featured-properties\", so the result should be \"featured-properties\
If you want to parse URL parameters, you can use the getParameterByName() function from this site:
In any case, as already mentioned, regular expressions in JavaScript are not plain strings: