You are not logged in.
Pages: 1
Hello,
This is great renaming tool. It renames using techniques the other tool doesn't. Thanks to the developers! There's just one thing I can't figure out (so far ).
I would like to use space as the delimiter but only for the first 3 delimited parts. I want to ignore the remaining positions on rewrite. I have been unable to find or figure out how it might be done. The alternative would be to use awk in Linux but this seems much easier with ReNamer if only I could find out how to ignore positions n-$ (n through the end of the filename. Ignoring the extension of course.)
Here is a dummy file name.
2001-12-09 JohnSmith #299 Murder Done Wrong & Knights at Night.mp3
Exampe target filename:
#299 2001-12-09 JohnSmith - Murder Done Wrong & Knights at Night.mp3
Thanks,
Larry
Offline
There are a few ways of achieving this:
A) Rearrange rule: Split by exact pattern of delimiters " #| ", new pattern "#$2 $1 - $3".
B) Regular Expressions rule: Replace expression "\A(.+?)\s+(\#\d+)" with pattern "$2 $1 -".
C) Pascal Script rule: This one would be more complex, so let's keep this as the last resort.
Offline
Thank you.
The Regular Expression rule worked! I have some experience with sed and vi but only for straightforward string replacement. Thanks!
The Rearrange rule did not seem to work, unfortunately.
Thanks,
Larry
Offline
The Rearrange rule did not seem to work, unfortunately.
You might have missed the required spaces around the split pattern " #| ".
Here is the demo of it working for your example filename:
Offline
autryld wrote:The Rearrange rule did not seem to work, unfortunately.
You might have missed the required spaces around the split pattern " #| ".
Here is the demo of it working for your example filename:
That's exactly what happened. Thanks for pointing that out.
--
Larry
Offline
Pages: 1