+
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.
More Related Contents:
- How do I get two numbers between two words (C#) [closed]
- Regex for string matching following criteria
- c# RegEx, how to filter the resultset of regex [closed]
- \d less efficient than [0-9]
- How to match hyphens with Regular Expression?
- Find and extract a number from a string
- Using C# regular expressions to remove HTML tags
- Regex Email validation
- C# Regex Split – commas outside quotes
- regex for accepting only persian characters
- Order of regular expression operator (..|.. … ..|..)
- Add spaces before Capital Letters
- Remove HTML tags from string including   in C#
- Regex: I want this AND that AND that… in any order
- How to read RegEx Captures in C#
- Remove text in-between delimiters in a string (using a regex?)
- Poor man’s “lexer” for C#
- How to get text between nested parentheses?
- Translate Perl regular expressions to .NET
- Are Java and C# regular expressions compatible?
- C# – Regex for file paths e.g. C:\test\test.exe
- C# Regular Expressions, string between single quotes
- Validating file types by regular expression
- How to use inline modifiers in C# regex?
- Get values between curly braces c#
- Regular expression where part of string must be number between 0-100
- Regular expression for version numbers
- regex to split line (csv file)
- Replace all occurrences of the Tab character within double quotes
- regular expression for anything but an empty string