Like everyone says, it is not a good idea to use regex to try and parse HTML. Just use the DOM like this:
// Like the user terrymorse did
let div = document.createElement('div');
div.innerHTML = '<body id="foo" class="bar"><span style="color: #d4d4d4;background-color: #1e1e1e;font-family: Consolas">Example Text</span></body>';
let children = div.children;
console.log(children[0].style.fontFamily);
You could also use split and array functions in order to find the property like this, but the DOM option is way better.
var s = '<body id="foo" class="bar"><span style="color: #d4d4d4;background-color: #1e1e1e;font-family: Consolas">Example Text</span></body>';
var x = s.split(";");
var y = x.filter(e => e.includes("font-family"))[0].split('"')[0];
var result = y.replace("font-family: ", "");
console.log(result)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…