how to only get numbers from a string node.js code example Example: js get number from string thenum = "foo3bar5".match(/\d+/)[0] // "3"