const regex = /class="imgbrd lazy"\s+src=".*?"\s+data-original=/gi;
// Alternative syntax using RegExp constructor
// const regex = new RegExp('class="imgbrd lazy"\\s+src=".*?"\\s+data-original=', 'gi')
const str = `<img class="imgbrd lazy" src="/something/iage.png" data-original="/albums/uploadedpics/small1/017246.jpg" border="0">`;
const subst = `src=`;
// The substituted value will be contained in the result variable
const result = str.replace(regex, subst);
console.log('Substitution result: ', result);
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for JavaScript, please visit: https://developer.mozilla.org/en/docs/Web/JavaScript/Guide/Regular_Expressions