Count the number of integers in a string July 18, 2023 by Tarik alert("g66ghy7".replace(/[^0-9]/g,"").length); Look here.