I have an Xcode project with 200 or so class files. All of these classes need to have addObserver/removeObserver balanced or there's a risk of crashes so I'm trying to find a way to show the problem files without having to manually scan each one.
Tried this regex from another post...
^(?!.[\s\S]*removeObserver).[\s\S]*addObserver.*$
...but it is returning classes that contain removeObserver.