Hi Pierre,
...can you add "system user" or "login user" or "computer suer" from the OS as a variable to this list?
Place holder
Moderators: helmut, XnTriq, xnview
- Gerald_Ire
- Posts: 107
- Joined: Wed Nov 11, 2020 12:37 pm
- Location: Germany
Place holder
-------------------------------------------------------------------------------
Gerald says thx to all! 


Re: Place holder
Example 1: "20250322_110102 This is a super cool image.jpg"
Example 2: "20250322_110102.jpg"
((Info: {Filename [16-]}))
Result 1: "Info: This is a super cool image"
Result 2: "Info: 20250322_110102"
Result 2 desired: ""
If substring is empty or out of boundary, it would be nice if the result is empty and not returning full string.
Maybe it can be done by a new option, e.g. [16~] (more tolerant tilde instead of hyphen
)
Also it would be helpful if regular expression is supported for replacements in filename, not just plain replacement like "{Filename [~img~out]}".
It could be an ordinary regular expression replace function where the result is used,
e.g. (perl style) s/(\d{8}_\d{6})?(.*)/$2/
This example suppresses the date string at begin.
Example 2: "20250322_110102.jpg"
((Info: {Filename [16-]}))
Result 1: "Info: This is a super cool image"
Result 2: "Info: 20250322_110102"
Result 2 desired: ""
If substring is empty or out of boundary, it would be nice if the result is empty and not returning full string.
Maybe it can be done by a new option, e.g. [16~] (more tolerant tilde instead of hyphen

Also it would be helpful if regular expression is supported for replacements in filename, not just plain replacement like "{Filename [~img~out]}".
It could be an ordinary regular expression replace function where the result is used,
e.g. (perl style) s/(\d{8}_\d{6})?(.*)/$2/
This example suppresses the date string at begin.