i want to find all =
operator in C source code. I tried to do this using regular expression and function pre_match_all()
, but i can't find right one.
Operator that I wanna find: =
Operator that I do not wanna find: += *= -= /= == &= |= &= ^= <= <<= >= >>= !=
Try [^+*-=/_&|\^.....]=
Means any equal except if some has any restricted character before (First ^
means exclusion)