FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests