I am not exactly sure what you mean. If I do a replace, all of the file that did not match is still there. If I do a Find, the entire line is listed for every match. The matches are highlighted, but when I Save, everything is in the output file, including all the other text on the lines that had matches.
My goal is to pull all unique structure field names out of a large MATLab program. Unfortunately, MATLab doesn't require (or allow) the definition of a structure before it is used, so structure fields can be added anywhere in the program making documentation and maintenance a nightmare. I match every use of a structure field with a regular expression like: G_PrgParms.:w (any field of structure G_PrgParms)
At the end, after sorting and removing duplicates in SlickEdit I have (ex:)
G_PrgParms.bAtEndOfFile
G_PrgParms.bFileOpen
G_PrgParms.ColorRunning
G_PrgParms.ColorStart
G_PrgParms.DirectoryName
G_PrgParms.ExitHandle
G_PrgParms.hSTAT
G_PrgParms.iActualSamplesPerCycle
Am I not doing something I should?