Skip to content

GREP query construction #86

Open
Open

Description

@EmanuelFaria

@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

Activity

  1. petermr commented on May 16, 2020

    @petermr
    Owner
  2. EmanuelFaria commented on Jun 22, 2020

    @EmanuelFaria
    CollaboratorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions