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

22382Re: [NTB] Regular Expression: find between two words

Expand Messages
  • Don
    Feb 23, 2012
    • 0 Attachment
      Using .* would be greedy by the way I believe ... is yours greedy? Or
      if Word2 was included in the to be captured would it stop prematurely?

      On 2/23/2012 3:09 PM, Eb wrote:
      > James,
      >
      > CORRECTION to the regular expression I posted. John Shotzky has correctly corrected my previous post.
      >
      > Use
      >
      > "(?<=Word1 )[^\r\n]*(?= Word2)"
      >
      > as the search pattern described earlier.
      >
      > Eb
    • Show all 15 messages in this topic