Temukan karakter antara ruang dengan regex di js

const text = 'Whatever - this is'
let re = new RegExp('\\ – ', 'gm') //or '\s–\s'
//This return an array of  string(s) if the match is found
console.log(text.match(re))
Tense Trout