Hi Dieter,
On Sunday, September 23, 2001 at 00:43 GMT +0200, a creature mimicking
Dieter Hummel [DH] wrote:
DH> but especially addressed to Januk....
It seems I'm getting a bad reputation. ;-)
DH> ' Hello %REGEXPTEXT="(?i)^Name\:\s*(.*?)\n", ' - alas
DH> this returns _my_ name (the first occurance of 'Name:'. How do I get
DH> the infor from the second occurance of 'Name:'...? TIA.
Well, I don't suppose you can change the form labels, can you? There
are a couple of ideas, none of which are ideal. They all make some
assumption, so pick the one that fits your case most closely.
1. Your name is always the first one.
%REGEXPTEXT="(?i)^Name\:(?!\s*Dieter\s*Hummel)\s*(.*?)\n"
This one looks for anything *except* your name.
2. There are no more than two Name fields:
%REGEXPTEXT="(?is).*Name\:\s*(.*?)\n"
This one finds the *last* Name field contents.
3. Find the second Name field:
%SETPATTREGEXP="(?is)(Name\:\s*(.*?)\n).*?(\nName\:\s*(.*?)\n)"%-
%REGEXPBLINDMATCH="%TEXT"%-
%SUBPATT="4"%-
--
Thanks for writing,
Januk Aggarwal
Using The Bat! 1.54 Beta/8 under Windows 98 4.10 Build 2222 A
Personal Plan: To avoid sanity, lucidity and wit at all costs.
--
______________________________________________________
Archives : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]