I am trying to read the "source" parameter and the "group" parameter from the url hash below. I have no idea how to use regex and keep ending up with blank variables.
How do I read "source" and "group" parameters from the url hash below
console.log(urlObj.hash); // #source-items?source=1002&?group=Menu
var source = urlObj.hash.replace( /.*source=/, "");