I have a string like this
"#G=0&path=folder1"
I want to find a part after "path=" which is folder1 in this case, and replace it with something else, so the string will look like this:
"#G=0&path=file2"
How can I do this using Javascript regular expressions?