Welcome
Welcome to <strong>id3tagit</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

rename and regex

rename and regex

Postby pidhunter on Sun Dec 21, 2008 7:09 pm

Hi :) ,

I tried to rename a whole directory tree with regex - to explain the problem i have this as example:

Code: Select all
1234-author author - title title [1994]


and i expected this:

Code: Select all
1234_Author_Author__Title_Title__1994


The solve of the problem with multiple seach/replaces is not the target of the tool - i hope.

I tried at first the regex placement for the first token. The regex search string for the first token (4 track numbers) was:

Code: Select all
[0-9]{4}-


The regex-replacementstring - %1 is the eval for first and only token should contain the 1234 without brackets - it should be like:

Code: Select all
%1_


.. :? .. but it does not work as expected - the result is without eval of %1

Code: Select all
%1_author author - title title [1994]


I expected at the first step (similar for each line in the main window).

Code: Select all
1234_author author - title title [1994]


Has anyone an idea :idea: why the eval of %1 do not work ??

best regard.
pidhunter
 
Posts: 1
Joined: Sun Dec 21, 2008 10:51 am

Return to Main discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron