I try to match any occurrence of a plus sign at the end of the term, except when it occurs exactly two times. For example, the plus signs in c+and c++++must be matched, but not in c++.
The naive approach \+{1}$|\+{3,}$does not work, obviously. Do you have an idea?
source
share