I want to search the files having "write" but at the same time I don't want my search results to include "writeful". So if there is
- write
- writeful
- writer
- fwrite
- foowrite
- Write
I want everything but writeful. Basically I need something with or without regex to exclude writeful.
I know one not-so-good-way to do it is search for writeful. And then do next search and exclude the files from previous search results. However it will fail if write and writeful both are present in same file.
write(?!ful)
?