MartyL,
What do you mean by this ought to do it for you? It works like a dream, this is quite a thing. Did you actually construct it using the little dropdown to the right of the expression box... no way.
I would like to ask a couple questions about the syntax if you don't mind. I tried to disassemble your code and attach SlickEdit's Help explanations:
(?:Pittsburgh) => (?:X) => Matches subexpression X but does not define a tagged expression
+? => X+? => Minimal match of one or more occurrences of X.
(?!.*Albany) => (?!X) => Search fails if expression X is matched. The expression ^(?!if) matches the beginning of all lines that do not start with if.
I think I might be right thus far, the question is what is the .*, I was thinking that * (as a wild card would do it, but no way, it messes the whole thing up beyond recognition).
I look in the same SlickEdit Help and I see:
s.*?t => Matches the letter s followed by any number of characters followed by the nearest letter t. Two possible matches are seat and st
That looks good, now what is the ? doing here.
I appreciate your help, great stuff,
Pedro