re = RegExp("=")
console.log "a = b".match(re)

