I have an evernote web url
I want to convert it with javascript to a desktop app url
evernote:///view/s5/18fd15e2-9581-47db-8140-0b94dc3b9f96/18fd15e2-9581-47db-8140-0b94dc3b9f96/
the question boils down to how can I get the id following noteGuid=
and before ¬eKey
EDIT
I found a neat way to parse out the noteGuid
var noteGuid = location.search.match(new RegExp("noteGuid" + "=(.*?)($|\&)", "i"))[1];