Hi All, One of the text editors I use offers one to specify a grep pattern to do a multi-file search and I am not wrapping my head around proper RE patterns to accomplish using this. There are so many rules! Can anyone help with a specific example so I can try to understand better? How would I write I want to find 'CP_', but NOT instances of 'CPLAT::CP_'? -Jason
>How would I write I want to find 'CP_', but NOT instances of 'CPLAT::CP_'?What comes before 'CP_' when you want a match? Whitespace, other chars, is it just 'CPLAT::CP_' you don't want? Anchor the search on that criteria, like a negated group before the 'CP_' or at least one of 'whitespace' for example...
Hi Les,>White space could be a tab. '[[:space:]]CP_' should work, but why not use sed >and be done with it.ah, worked!. I was thinking way to much into this. I thought that I had to ignore what I didn't want, but in thie case what I dont want does not have a space so it would not show up anyway. Thank You very much. -Jason