Javascript - Use regular expression to alter name / value in url

You can use a construct similar to the following to reload a page with a small change to the url string using javascript.

location.href=location.href.replace(/=[a-z|A-Z|-]+\.htm/,'=FlashTest.html');
Reply:
 
 
 
 
rendered @ Wed Oct 1 6:24:29 CEST 2014