var someString = "style="height: 247px; width: 329px;" rel="height: 247px; width: 329px;" ";
how to update width value from 329px to 500px using regular expression in javascript.
i'm able to get the width value by using
reg = /width:\s(\d*)/;
someString.match(reg)[1];
but how to update all width values ?