I have this regex expression
let paragraph = "112-39-8552 asdasdas 123-58-3695";
let result = paragraph.match(/(\d{3}\-\d{2}-\d{4})+/);
console.log(result);
I will have this as a result
[
'112-39-8552',
'112-39-8552',
index: 0,
input: '112-39-8552 asdasdas 123-58-3695',
groups: undefined
]
It only find the first pattern but not the second
how can I include 123-58-3695 in the search result?