js regex match _ code example
Example 1: javascript filter strings for partial matches
arr.filter(x => x.title.toLowerCase().includes(searchStr.toLowerCase()))
Example 2: js match any number string
const match = 'some/path/123'.match(/\/(\d+)/)
const id = match[1] // '123'