How to replace compounds with special characters (e.g. +⃗)

I have a string with compound characters assembled of RegEx special characters. (e.g. (⃗ and +⃗ ). Now I want to replace them with something else using javascript on nodejs.

The problem is, that the interpreter thinks the + in the compound is a special character and throws this exception: SyntaxError: Invalid regular expression: /+⃗/: Nothing to repeat

Any ideas?

You can write your regex as

var regex = /\+\u20d7/; // for +⃗