match is similar to JavaScript RegExp Exec Method, but in flip mode: console.log("one two 100".match(/\d+/));