Is it possible to use the search function and exclude a string which i dont want to find ?
Maybe to find every FOR EACH whithout NO-LOCK statement.
You might be able to use regular expressions for that. Personally, I have an intolerance for regexes so I try to stay away from them :)
that would be very complex and error prone,
have a look at https://riverside-software.atlassian.net/wiki/spaces/OESONAR/overview
This will check your code for all kinds of bad coding
If you check the regular expression at your right you can use something like this.I use it for searching combinations on one line.
^(?!.*no-lock)(.*for each)(.*$)