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 @ Sun Mar 29 14:17:43 CEST 2015