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

Re: Matching Across Lines

Expand Messages
  • bps8@daimlerchrysler.com
    ... How about this one... ^ (.. ):.* _$ ( n 1:.* _$ ) + Brett S.
    Message 1 of 3 , Oct 1, 2003
    • 0 Attachment
      > I have a file that looks like:
      >
      > SI: data
      > SI: data
      > SI: data
      > SK: data
      > SK: data
      > SK: data
      > SK: data
      > SI: data
      > SK: data
      >
      > etc.
      >
      > I'm trying to get a regular expression that will grab all of the
      > adjacent SI or SK lines (i.e. the first two SI: lines as a match).
      >
      How about this one...

      ^\(..\):.*\_$\(\n\1:.*\_$\)\+

      Brett S.

      > Any thoughts?
      >
      > Thanks,
      >
      > Scott LaBounty
      > Nexa Tehchnologies, Inc.
    Your message has been successfully submitted and would be delivered to recipients shortly.