Page 1 of 1

Insert characters at a specified position

Posted: 25 Mar 2025 12:54
by Nicked
In the previous versions of XYplorer, I used the following command in CFA

Code: Select all

|"Insert ★" \;*>::e|rename , '<#1-6>★*'
to insert the ★ symbol at the sixth character of the selected file names.

For example turn "250324filename.txt" to "250324★filename.txt".

But in the recent versions, this command has stopped working. It now preppends "1-6★" to the file name.

I want to know if XYplorer has modified the related syntax, and if there are other ways to achieve this functionality now?

Re: Insert characters at a specified position

Posted: 25 Mar 2025 13:00
by highend
|"Insert ★" \;*>::e|rename r, '^(.{6})(.*) > $1★$2'

Re: Insert characters at a specified position

Posted: 25 Mar 2025 22:39
by jupe
Your orig script would never have worked the way you describe, I think you are mistaken.

Re: Insert characters at a specified position

Posted: 26 Mar 2025 01:48
by Nicked
highend wrote: 25 Mar 2025 13:00 |"Insert ★" \;*>::e|rename r, '^(.{6})(.*) > $1★$2'
Thanks so much, it works!