title: Regex replace between two words
body: <p>I want to replace set of string between two characters say <code>&amp;</code> and <code>[]</code> with some other value. For example, my string is like <code>&amp;yyyyyyy[]=&amp;gggggg[]=&amp;bbbbb[]=</code>. Now I want to replace the string between <code>&amp;</code> and <code>[]</code> with "name" so that it looks like <code>&amp;name[]=&amp;name[]=&amp;name[]=</code>. Now how to do it?</p>