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

43806Re: Matching Across Lines

Expand Messages
  • bps8@daimlerchrysler.com
    Oct 1, 2003
      > 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.
    • Show all 3 messages in this topic