JSFiddle - React, Tailwind, and code Playground
JavaScript
var iframe = '<iframe src="http://someaddress.com" width="600" height="500"></iframe>',
regEx = /(src)=["']([^"']*)["']/gi;
iframe.replace(regEx, function(all, type, value) {
alert(value);
});