Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js match any number string

const match = 'some/path/123'.match(//(d+)/)
const id = match[1] // '123'
 
PREVIOUS NEXT
Tagged: #js #match #number #string
ADD COMMENT
Topic
Name
1+2 =