Loading ...
Sorry, an error occurred while loading the content.

Re: find a specific word along with surrounding words, etc.

Expand Messages
  • diodeom
    After removing one needless grouping: ^!Set %s%=^( d+ . ).*?(( b w.{0,17})? b[Aa]id b(.{0,17} w b)?) ^!Set %r%=$1$2
    Message 1 of 6 , Sep 5, 2011
    • 0 Attachment
      After removing one needless grouping:

      ^!Set %s%=^(\d+\. ).*?((\b\w.{0,17})?\b[Aa]id\b(.{0,17}\w\b)?)
      ^!Set %r%=$1$2
    • KenH
      Thanks again. I ran across something in my research and tried it in this code. It seems to work but maybe I ll run into side effects somewhere down the line?
      Message 2 of 6 , Sep 5, 2011
      • 0 Attachment
        Thanks again. I ran across something in my research and tried it in this code. It seems to work but maybe I'll run into side effects somewhere down the line?

        [Aa]id -> (?i)aid

        --- In ntb-clips@yahoogroups.com, "diodeom" <diomir@...> wrote:
        >
        > After removing one needless grouping:
        >
        > ^!Set %s%=^(\d+\. ).*?((\b\w.{0,17})?\b[Aa]id\b(.{0,17}\w\b)?)
        > ^!Set %r%=$1$2
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.