TheBat-techies,

 I am having a person knowledgeable of RegExp help me with some RegExp,
 I want to do in TB! The thing is that he does not know how TB! works.

 I have a mail which contains some order lines and I want to be able to
 extract the information from those. An example:

 ===========

 2 x Jetfin (SP-Jetfins) = 2.000dkk
         St�rrelse XL
         Farve Sort
 1 x Solaris (ST-Solaris) = 650dkk
 2 x Transporttaske (DTD-Taske) = 700dkk

 ===========

 The problem is that the prices are total prices, i.e. the price of the
 "Jetfins" is 1.000dkk a pair. So the price must be divided by the
 ordered amount.

 But the price _may_have_ a . for easier reading (I know this should be
 an , in English) and you cannot make a calculation 2.000/2 in TB!
 because 2.000 is not a number. How can I match the number, removing any
 . in the process?

 Trying to match e.g. 240dkk and 1.100dkk - using:
 1)
 %SetPattRegExp='(?i-s)(\d+(?=dkk))'
     240dkk => 240
   1.100dkk => no_match

 2)
 %SetPattRegExp='(?i-s)\d(?=\.)(\d+(?=dkk))'
     240dkk => no_match
   1.100dkk => no_match

 Please help. TIA.

-- 
<greeting> Best regards </greeting>
<author> Peter Fjelsten </author>
<thebat version> 3.0.1.33 </thebat version>
<os> Windows XP 5.1 Build 2600 Service Pack 1 </os>



________________________________________________________

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

Reply via email to