I have a string which is something like this :
a_href= \"www.google.com/test_ref=abc\";
I need to search for test_ref=abc in thisabove stri
a_href = a_href.replace(/(test_ref=)[^\&]+/, '$1' + updated_test_ref);