let regex = /\d+/; // Matches one or more digits let myString = "The price is 100 dollars"; let result = myString.match(regex); console.log(result); // Output: ["100"]