How do I get part of a URL and redirect the user to a URL with that part of the URL in?
<p>I want to create a bookmark that runs javascript.
It will get part of a URL from a game's forum that I use and take the user to an edit page for it.</p>

<p>The url for the post could be something like this for example - <a href="http://www.roblox.com/Forum/ShowPost.aspx?PostID=78212279" rel="nofollow">http://www.roblox.com/Forum/ShowPost.aspx?PostID=78212279</a></p>

<p>Did you see the PostID bit? I want to get that number and redirect the user to this:
http://www.roblox.com/Forum/EditPost.aspx?PostID=[NUMBER GOES HERE]</p>

<p>So I want to get a part of the url and put it in the PostID.</p>

<p>Can anyone help with this?</p>
