Insert characters at a specified position

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Nicked
Posts: 2
Joined: 25 Mar 2025 12:35

Insert characters at a specified position

Post 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?

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Insert characters at a specified position

Post by highend »

|"Insert ★" \;*>::e|rename r, '^(.{6})(.*) > $1★$2'
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Insert characters at a specified position

Post by jupe »

Your orig script would never have worked the way you describe, I think you are mistaken.

Nicked
Posts: 2
Joined: 25 Mar 2025 12:35

Re: Insert characters at a specified position

Post by Nicked »

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

Post Reply