PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
you don't have a regex in Javascript. Regexes of this syntax, do not have quotes around them.
Why are you using Javascript and regexes to find this information? You can just use the QueryString object ([google]Javascript QueryString object[/google]) or better yet, use php to do it.