RegExp Value Between a Hard Coded Variable and &

Hey guys,

I have a string that looks like

site=somewhere&content1=foo&content2=1469&somethingelse=something

I need to dynamically replace the content2 variable on the fly with a new value.

So for example I will randomly need to change 1469 to “dave is a cool flash dev” or something like that.

For the life of me, I can’t wrap my head around Reg Exp’s. How can I just say take everything after content2= and before the next & and replace it with “foo”.

TIA.