Regex to match a word with + (plus) signs

+ is a special character so you need to escape it

\bC\+\+(?!\w)

Note that we can’t use \b because + is not a word-character.

Leave a Comment