Re[2]: Why does regexpr not work

2004-09-07 Thread Britt Malka
Hello Roelof,

Tuesday, September 7, 2004, 2:02:07 AM, you wrote:

 First your regular expression is searching for a pattern like this:
 Fornavn = blabla
 Efternavn = blabla
 e-mail: blabla

 while your getting this:

 email:  blabla
 Fornavn = blabla
 Efternavn = blabla

 So it'll never match.

Ah, thanks for your help here. I haven't given it a thought that the
order had any importance.

 Second you're asking three times for the same argument.

I am?

 I guess you might have more luck with this:

 %To=%To='%SetPattRegExp=_(is?)(.*?)E-mail:\s(.*?)\n(.*?)Fornavn\s\=\s(.*?)\nEfternavn(.{3})(.*?)\n_%-
 %RegExpBlindMatch=_%Text_%-
 %SubPatt=_6_ %SubPatt=_8_ %SubPatt=_3_'%-

Actually, no, but I guess there is something about SubbPatt that I
don't get.

How did you find 6, 8 and 3?


-- 
Best regards,
 Britt




http://www.silverstones.com/thebat/TBUDLInfo.html


Re[2]: Why does regexpr not work

2004-09-07 Thread Britt Malka
Hello Roelof,

Tuesday, September 7, 2004, 11:51:42 AM, you wrote:

 Hallo Britt,

Nederlands?

 Second you're asking three times for the same argument.
BM I am?

 You were asking three times for %SubPatt=_2_

Oh ... I understood %SubPatt for each part of the regexp. When I tried
(.*?)E-mail:\s(.*?)\n in Dirk Heisers DLL, and there I found the
address under %SubPatt 2. The same went for Fornavn and Efternavn.

But then I should look at it all, and not parts of it?

 That's because I found soemthing that worked, tried something else
 that didn't and then sent the none working trial. :-(

That's not logical, captain ;-)

 This worked on your original post, in case it doesn't produce the
 proper result you'd better send an original message to me, preferably
 mime attached and off list.

Thank you for this kind offer, because it still doesn't produce the
to-address.

 The whole pattern is subpatt 1 and everything between parenthesis is
 an additional subpattern, so you can count them

Ah, thanks.


-- 
Best regards,
 Britt




http://www.silverstones.com/thebat/TBUDLInfo.html