Help - Search - Members - Calendar
Full Version: a dash after the first word
Mp3tag Forums > Mp3tag - International > Support
evergreen1

i have a few titles as this.


4shared -93 P Susheela

i want to get it as > 93 P Susheela

i tried the following with no success
1) filename filename conversion old pattern $1-$2
new pattern $2
not accepting by mp3tag
2)to get a dash after the first word
REPLACE WITH RE
FIELD>title
RE> (.*?)(.*)
Rep with> $1-$2
result is i get a dash before the first word>becomes -4shared -93 P Susheela

3) i tried the following to get a dash after the second word
REPLACE WITH RE
FIELD>title
RE> (.*?)(.*?)(.*)
Rep with> $1-$2
result is i get a dash >becomes -
4) tried to delete a few characters from the begining of the string with
.{7} didnot give the result
it shows that the string is being considered as one word by the mp3tag.
how can i get the result?
ohrenkino
ZITAT(evergreen1 @ Apr 11 2012, 08:58) *
...i tried the following with no success
1) filename filename conversion old pattern $1-$2
new pattern $2
not accepting by mp3tag ...

The converter filename-filename uses
%1-%2
as variables.
You have used the wrong syntax.
Also: Why do you use the filename-converter if you want to modify TITLE?

For the regular expression I would use teh following pattern:
^.*-(.*)
Replace with
$1
DetlevD
QUOTE (evergreen1 @ Apr 11 2012, 08:58) *
i have a few titles as this.
4shared -93 P Susheela
i want to get it as > 93 P Susheela
i tried the following with no success
1) filename filename conversion old pattern $1-$2
new pattern $2
not accepting by mp3tag

Use the correct syntax and placeholders in the converter "Filename - Filename", see picture ...
Click to view attachment


QUOTE (evergreen1 @ Apr 11 2012, 08:58) *
2)to get a dash after the first word
REPLACE WITH RE
FIELD>title
RE> (.*?)(.*)
Rep with> $1-$2
result is i get a dash before the first word>becomes -4shared -93 P Susheela

It is not clear what you want to achieve, what do you mean with "word"?

QUOTE (evergreen1 @ Apr 11 2012, 08:58) *
3) i tried the following to get a dash after the second word
REPLACE WITH RE
FIELD>title
RE> (.*?)(.*?)(.*)
Rep with> $1-$2
result is i get a dash >becomes -

It is not clear what you want to achieve, what do you mean with "word"?
See also:
http://forums.mp3tag.de/index.php?showtopi...ost&p=51568

QUOTE (evergreen1 @ Apr 11 2012, 08:58) *
4) tried to delete a few characters from the begining of the string with
.{7} didnot give the result
it shows that the string is being considered as one word by the mp3tag.
how can i get the result?

You can "throw an anchor", that means, tell the regexp where to start the examination.
For example, the caret sign ^ marks the left side of the given string as the starting point.
$regexp(%_FILENAME%,'^.{7}',)
See also:
http://forums.mp3tag.de/index.php?showtopi...ost&p=44037

DD.20120411.0946.CEST
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.