I am stuck with extracting spesific data from txt file.
I have a txt file which includes some infomation.
E.g.
Company Name GmbH, Teststraße 24 , 01000 Sampleort Customer Nr. 11111111 Invoice Nr. 22222
Invoice Adress Company Name 2 mbH, Test2straße 11, 01001 Sample2ort Order number. 555555 Order Date 01.01.1999
So, I have different structures of like above information. Some files include with Invoice Nr., some files include Inv. Number: 44444. I want to catch all of them. I think, I can catch all of these informations with creating dictionary like:
`values_dict= {'Customer Number':'customer nr.', 'customer number',
'cus. nr.', ... , 'Order Number':'order number', 'Order nr' ,....}`
And, how can I catch spesific values from txt files with using that dict?
I am expecting output like:
Order Number : 555555 Customer Number: 11111111 Invoice Number: 22222 Order Date: 01.01.1999
Company Information: Company Name GmbH, Teststraße 24 , 01000 Sampleort Invoice Company Information: Company Name 2 mbH, Test2straße 11, 01001 Sample2ort