I have a string:
"/upload/c_fill,w_960,h_640/v1430399111/"
Where i want to replace wherever "w_" to some other value, say w_960 to w_930 while 960 could be vary.
i tried following but not able to find string end with:
var imgPath = elemPath.replace(/(\,w_)/, ",w_"+930);