This will work for you to get the number and text before the number:
var string = "My Account number 1212125678 Avaliable $1,500";
var numbers = string.match(/\d+/g).map(Number);
console.log(numbers[0]);
var text = string.split(numbers[0])[0];
console.log(text);
3
solved How to get My Account number from a String using javascript