Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selection with search
#1
Hello again,

I'm wondering if it's possible to 'tell' QM that after the first find it has to stop searching and it has to select wat it has found. I'm trying to extract a email-header from a peace of text but can not get it done properly....

i'm doing it now like this:

findrx(s1 "(?s)(Return-path|Return-Path|Delivered|delivered).+(Content-Transfer-Encoding:|Content-Type:|Mime-VersionSmile" 0 1|16 s3 0)

but when there are more than 1 headers in a text the 'subtext' is also selected which is not mentioned to be done, it should stop after the first find of Content-Transfer-Encoding:|Content-Type:|Mime-Version:

Can this be realized?

THX
#2
.+ matches as many text as possible. Try .+?


Forum Jump:


Users browsing this thread: 1 Guest(s)