Place holder

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Gerald_Ire
Posts: 107
Joined: Wed Nov 11, 2020 12:37 pm
Location: Germany

Place holder

Post by Gerald_Ire »

Hi Pierre,
...can you add "system user" or "login user" or "computer suer" from the OS as a variable to this list?
-------------------------------------------------------------------------------
:D Gerald says thx to all! :D
talon
Posts: 2
Joined: Wed Sep 07, 2022 5:00 pm

Re: Place holder

Post by talon »

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.
Post Reply