title: Change url with bookmarklet
body: <p>Trying to write a javascript bookmarklet to jump from a front end link into a CMS edit page link. </p>
  
  <p>So take a url like this</p>
  
  <p><a href="http://www.example.com/events/13097/article" rel="nofollow">http://www.example.com/events/13097/article</a></p>
  
  <p>and make a url like this</p>
  
  <p><a href="http://www.example.com/admin/edit.php?class=events&amp;id=13097" rel="nofollow">http://www.example.com/admin/edit.php?class=events&amp;id=13097</a></p>
  
  <p>I think I need to use regex to grab the class and id and then wrap it into a javascript function- but I'm a absolute beginner and wondering if someone can get me started?</p>