Regex remove everything after : (including :)
For your example you could call .split(":")
on your string and then select the first array element using "[0]"
var whole_text = "Foundation: 100";
var wanted_text = whole_text.split(":")[0]
console.log(wanted_text)
var text = "Foundation: 100";
text = text.replace(/:.*$/, "");
console.log(text);