File Search (CTRL-H) with excluding string

Posted by Dominik Loewenstein on 27-Mar-2017 02:22

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.

All Replies

Posted by Patrick Tingen on 27-Mar-2017 04:04

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 :)

Posted by cverbiest on 27-Mar-2017 05:11

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

Posted by kevin hermans on 27-Mar-2017 09:19

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)(.*$)

This thread is closed