Numer dopasowania JavaScript
str = "hello123!"
str.match(/(\d+)/)[1] //Best way to find first matching number in string ;)
Armandres
str = "hello123!"
str.match(/(\d+)/)[1] //Best way to find first matching number in string ;)
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'