Hello Nick, On Monday, March 18, 2002 at 6:43:19 PM you wrote (at least in part):
ND> Now, if I can bother you yet again..... *ahhh* ... I'm an old man ... need my sleep *ggg* ND> Do you know the syntax for performing a %CALC on two of these ND> expressions? The ways I've tried so far definitely aren't doing the ND> trick. Do you like long macros? No? Sorry ... can't help you :-) Yes? Here it is :-) %CALC="%SETPATTREGEXP='%- (?i)^Maximum bid\:\s+\$(.*?)\s*$'%- %REGEXPDMATCH='%TEXT'+%- %SETPATTREGEXP='%- (?i)^Shipping costs\:\s+\$(.*?)\s*$'%- %REGEXPDMATCH='%TEXT'"0%- If 'Shipping Costs' e.g. is a fixed value (as here is) you won't need the second RegExp, but the trick is to do _all_ necessary pattern matching within '%CALC' macro. The last '0' is on my side because very often 'round' values are calculated and as '%CALC' does not allow to set the number of decimal digits I've to work around :-) HTH Pit -- Regards Peter Palmreuther mailto:[EMAIL PROTECTED] (The Bat! v1.54 Beta/50 on Windows 2000 5.0 Build 2195 Service Pack 1) The more things change, the more they stay insane. -- ______________________________________________________ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
