I\'m trying to retrieve the category part this string \"property_id=516&category=featured-properties\", so the result should be \"featured-properties\
property_id=516&category=featured-properties
The syntax is messing up your code.
var urlRE = url.match(/category=([a-z-]+)/); alert(urlRE[1]);