Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GREP query construction #86

Open
EmanuelFaria opened this issue May 15, 2020 · 2 comments
Open

GREP query construction #86

EmanuelFaria opened this issue May 15, 2020 · 2 comments

Comments

@EmanuelFaria
Copy link
Collaborator

@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

@petermr
Copy link
Owner

petermr commented May 16, 2020 via email

@EmanuelFaria
Copy link
Collaborator Author

thanks Peter![[selfie-0 uploading...]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants