Hello Peter,

On Thursday, October 30, 2003 at 15:33 GMT +0100, clairvoyants were
mystified when Peter Fjelsten [PF] conjured:

PF>  Please bear with me, as this may be a log message and a bit difficult
PF>  to understand.

Ok, I've got most of it, though perhaps not the hardest parts.  This
is partially tested, but you'll have to see if it actually works.

=====[Begin template fragment]=====
%Rem=" Get Name and address from Billing Address "%-
%-
%SetPattRegexp="(?im-s)^(Billing\sAddress|Fakturaadresse)\s*?\n-{50,}\s*?\n(.*?)\s*?\n((.*?)\s*?\n)?((.*?)\s*?\n)?((.*?)\s*?\n)?((\D{1,2}.\d{3,6})|\d{3,6})\s(.*?)\s*\n\s*(.*?)\s*?\n"
%RegexpBlindMatch="%Text"%-
NAVN=%SubPatt("2")

ADRESSE1=%SubPatt("4")

ADRESSE2=%SubPatt("6")

ADRESSE3=%SubPatt("8")

POSTNR=%SubPatt("10")

BYNAVN=%SubPatt("11")

LAND=%SubPatt("12")

%Rem=" Get Name and address from Delivery Address "%-
%-
%SetPattRegexp="(?im-s)^(Delivery\sAddress|Leveringsadresse)\s*?\n-{50,}\s*?\n(.*?)\s*?\n((.*?)\s*?\n)?((.*?)\s*?\n)?((.*?)\s*?\n)?((\D{1,2}.\d{3,6})|\d{3,6})\s(.*?)\s*\n\s*(.*?)\s*?\n"
%RegexpBlindMatch="%Text"%-
LEV:NAVN=%SubPatt("2")

LEV:ADRESSE1=%SubPatt("4")

LEV:ADRESSE2=%SubPatt("6")

LEV:ADRESSE3=%SubPatt("8")

LEV:POSTNR=%SubPatt("10")

LEV:BYNAVN=%SubPatt("11")

LEV:LAND=%SubPatt("12")

MOMSBEREGNING=DK

VEDR0REND=%SetPattRegexp="(?ism)^(Date Ordered|Ordre 
modtaget):[^\n]*\n\s*(.*?)\s*\n(Products|Produkter):"%-
%_________%RegexpBlindMatch="%Text"%-
%_________%SubPatt("2")

LEVERING=%RegexpText="(?im-s)^Sub-?total:.*?\n\s*?(.*)\s*?\n"

BETALINGSMETODE=For

%_Shipping='%SetPattRegexp="(?im-s)shipping.*?(\d*([\.\,]d*)?)dkk\s*\n"%-
%___________%RegexpMatch="%Text"'%-
%-
%If:'%SetPattRegexp="(?im-s)^Total:.*\n\s*?(Moms|DK\smoms/VAT)\n\n"'<>'':'%-
FRAGTMOMSPLIGTIGT=%Calc="%_Shipping*0.8"dkk':'%-
FRAGTMOMSFRI=%_Shipping'
=====[ End  template fragment]=====


-- 
Thanks for writing,
 Januk Aggarwal



________________________________________________________

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

Reply via email to