1
[Feature Request] Extract OCR regex capture groups into document metadata
Source: paperless-ngx/paperless-ngx#14730 · opened by @immortalserg
Description > AI assistance disclosure: This proposal was drafted with AI assistance and must be reviewed and verified by the contributor before submission. No upstream code has been implemented or tested as part of this proposal. Problem Paperless-ngx already supports regular expressions for matching documents, correspondents and workflow triggers. However, a user cannot easily capture a specific substring from OCR and assign that captured value to a document custom field (e.g. invoice amount, IBAN, reference number). This is distinct from testing whether a pattern matches. Example OCR text: Example mappings: • (?im)^Montant\s+EUR\s+([\d.,]+) -> group 1 -> custom monetary/number field (locale-aware decimal conversion). • (?im)^IBAN:\s*(LU(?:\s*[0-9A-Z]){18}) -> group 1 -> custom string field (compact normalization). Prior community discussion • [Feature request discussion #5332: Set value of custom field via Regex]( •…
No pledges yet. Be the first to back this.
Comments
Similar requests
[Feature] Optional removal of blank pages from the archive file (originals untouched)
3 votes · 0 comments
[Feature Request] Support a self-hostable remote OCR service
35 votes · 0 comments
[Feature Request] OCR: Extract specific data from zones into Fields [PR incoming]
12 votes · 0 comments
[Feature Request] Re-run OCR automatically when the extracted text is poor
2 votes · 0 comments
[Feature Request] Selective / Conditional Remote OCR Routing (Azure OCR)
5 votes · 0 comments
No comments yet.