I have this regex for an html
var appraisalRx = /function savedAppraisalId\(\)\n\s+\{\n\s+return (\d{8})/;
let res = html.toString().match(appraisalRx);
if (res == null || res.length == 0)
console.log("No Appraisal ID Found in HTML");
And this is the html:
<script type="text/javascript">
function savedAppraisalId()
{
return 11457602;
}
</script>
I test it in online regex checker and it seems to be working fine. But it isnt in here.