Maybe this works:
(?ms)^200~(.*?)(?=^2~00~)
(?ms) sets multiline option ('^' matches the beginning of a line) and
singleline option ('. ' also matches a newline)
^200~ matches 200~ at the begin of a line
(.*?) matches and captures everything that comes thereafter (a greedy
capturing group)
(?=^200~) until there is another 200~ at the begin of the line (a zero-width
positive lookahead)
I have not tested this but I hope that it gives at least some pointers..
Peter Veger, Best
> Folks,
>
[quoted text clipped - 18 lines]
>
> Any help would be appreciated
Garibaldi - 26 Mar 2004 00:59 GMT
With one change your expression works perfectly. Here's
the working expression:
(?ms)^200~(.*?)(?=^200~)
Thanks very much, Peter.
>-----Original Message-----
>Maybe this works:
[quoted text clipped - 37 lines]
>
>.
Peter J. Veger - 26 Mar 2004 09:37 GMT
Sorry for the typo (it was just before going to bed...)
Sorry also for the wrong name: (.*?) is not 'greedy' but 'lazy'
and I should read my solution as:
find the marker at bol and capture just enough characters to see the next
marker at bol
Peter J. Veger
> With one change your expression works perfectly. Here's
> the working expression:
[quoted text clipped - 50 lines]
> >
> >.