Closed stony007de closed 9 months ago
Hi RegEx Experts, is there anyone who can give me an idea for my Problem. My Amazon Invoices comming with 2 kinds of invoicedates.
here the recognized OCR:
Rechnungsdatum 31. Januar 2024
and
Rechnungsdatum /Lieferdatum 24 Januar 2024
so it could be Rechnungsdatum or Rechnungsdatum /Lieferdatum my Template is currently
date: s+(?:Rechnungsdatum|Rechnungsdatum\s*/Lieferdatum).\s+(\d{2}.\s+(?:Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember).\d{4})
The Regex-tester says everything is fine an i find the Date. invoice2data way -->
> CRITICAL:root: Invoice2data failed to process /opt/sz2xd/scan/AmazonBusinessRechnungsnr1Q6J-1G99-F39J.pdf. > Error message: Unable to parse required field(s): {'date'}
Ok found:
date: Rechnungsdatum\s*Lieferdatum|Rechnungsdatum.\s*(\d{2}.\s+(?:Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember).\d{4})
Hi RegEx Experts, is there anyone who can give me an idea for my Problem. My Amazon Invoices comming with 2 kinds of invoicedates.
here the recognized OCR:
and
so it could be Rechnungsdatum or Rechnungsdatum /Lieferdatum my Template is currently
date: s+(?:Rechnungsdatum|Rechnungsdatum\s*/Lieferdatum).\s+(\d{2}.\s+(?:Januar|Februar|März|April|Mai|Juni|Juli|August|September|Oktober|November|Dezember).\d{4})
The Regex-tester says everything is fine an i find the Date.
invoice2data way -->