.match javascript regex +1 code example
Example 1: js match any number string
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'
Example 2: regex for strings with specific letters javascript
let re = /ab+c/;
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'
let re = /ab+c/;