GREP query construction
EmanuelFaria opened this issue · 2 comments
@petermr I need some help...
I’m stuck on how to build a GREP query in TextMate.
I want to search all of the articles in a particular directory for:
- all words ending with *tor (like inhibitor, constrictor, etc)
- and include [x] number of words (or characters, if need be) before after the found terms.
I need to use TextMate because its find/replace preview window a) shows me just results (it hides anything outside my search parameters), and b) it allows me to copy only what is visible in that preview pane and paste into another document where I can work the set I just found.
I've searched around online and found various discussions on on stack overflow etc., but none of them are working for me.
The last one I tried was this:
/(?:)[\*tor]/".{0,5}test_pattern.{0,5}"
But TextMate just says "No results for...."
Looking forward to solving this puzzle.
Manny
thanks Peter![[selfie-0 uploading...]]