Morning Zdeněk,
Thank you for the tests, I found out that the regex pattern wasn't well implemented.
If you try to test the following strings, no quotes not mandatory, BP crashes....
The reason why is the regex pattern creates a loop that never stops because the Z pattern is never found. (regex101.com, catastrophic backtracking)
It happens when the comment is too long and the z value (3) is incorporated in the comment "PANEL 123MM SPRAY PAINTED"
"1212341234 5 PANEL 123MM SPRAY PAINTED3 2"
So I want this instead:
"1212341234 5 PANEL 123MM YELLOW-GRAY PATTERN 3 2"
The red spaces are mandatory.
Anyway the solution is the following "(?<X>\d{10})( |\n)(?<Y>\d{1,4})( |\n).*( |\n)(?<Z>\d{1,4})( |\n)(?<K>\d{1,4})" if nothing found the pdf is rejected.
So, I think that some checks needs to be implemented in order to manage this unlucky cases in a future update.
------------------------------
Luigimaria
------------------------------