RU
EN
Main Page
Download
Addons
Forum
Blog
Feedback
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
News:
AIMP for Android v4.00
AIMP Forum
»
Разное
»
Archive
»
Questions (archive)
(Moderator:
ZeoN7
) »
%REPLACE() with wildcards?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: %REPLACE() with wildcards? (Read 3740 times)
0 Members and 1 Guest are viewing this topic.
%REPLACE() with wildcards?
«
on:
February 14, 2016, 16:47:08 »
pstein
Новичок
Posts: 41
Карма: +0/-0
I would like to use the %Replace() function with wildcards "*" .Something like (mind the * !):
%Replace(%FileDir;*musicarchive, BASE)
So that the following (simplified) replacements are done:
D:\aaa\bbb\ccc\musicarchive\jazz\2015\song1.mp3 ---> BASE\jazz\2015\song1.mp3
E:\ddd\eee\fff\musicarchive\rock\2014\song2.mp3 ---> BASE\rock\2014\song2.mp3
Unfortunately * wildcards seems not to work.
Can this be added in the next release?
Thank you
Peter
«
Last Edit: February 20, 2016, 13:10:58 by Soolo
»
Logged
Re: %REPLACE() with wildcards?
«
Reply #1 on:
February 14, 2016, 19:30:14 »
Artem
Администратор
Супермен
Posts: 18268
Карма: +3080/-70
Quote from: pstein on February 14, 2016, 16:47:08
Can this be added in the next release?
I think yes
Logged
Re: %REPLACE() with wildcards?
«
Reply #2 on:
February 15, 2016, 08:53:42 »
Artem
Администратор
Супермен
Posts: 18268
Карма: +3080/-70
Try to use this template:
%Replace(%StrCopy(%FileDir,%StrPos(musicarchive,%FileDir),65535),musicarchive,BASE);
Logged
Re: %REPLACE() with wildcards?
«
Reply #3 on:
February 20, 2016, 13:08:32 »
pstein
Новичок
Posts: 41
Карма: +0/-0
Great!
It works
:-)
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
AIMP Forum
»
Разное
»
Archive
»
Questions (archive)
(Moderator:
ZeoN7
) »
%REPLACE() with wildcards?