Smart Link questions

Questions, comments, discussions. Over time certain topics might be moved to their own category.
Post Reply
Posts: 1
Joined: Sun Apr 25, 2021 12:33 am

Smart Link questions

Post by keridos »

I am trying to use this source to get a date in the format 24.04.2021 from my OCR readings:

Code: Select all

{% for value in document.ocr_content %}
{% regex_search "[0-9]+\.[0-9]+\.[0-9]{4}" value as m %}{{ m.0 }}
{% endfor %}
This gives me the date as it is used in other documents. However I tried a Smart Link condition telling it that the foreign documents OCR content contains that date but the Smart Link Condition seems to not work. I double checked If the document that should be linked has the extracted date in its OCR content and it does in fact have it in there. So why doesn't it find the string in it and triggers the smart link?

Thanks in advance
Post Reply