\D
let movieName = "2001: A Space Odyssey"; let noNumRegex = /\D/gi; // Change this line let result = movieName.match(noNumRegex).length;