» Welcome Guest
[ Log In :: Register ]

 

[ Track this topic :: Email this topic :: Print this topic ]

Topic: Parse Template Help!, Parse Template Help!< Next Oldest | Next Newest >
TG4
Unregistered





Posted: Mar. 29 2004,21:43

Hi -

I'm trying to use the advanced mode of the parsing templates feature (where I create the tag from the filename) and I can't figure out the following:

My filename is as follows:
gd1972-07-26Newd1t01.mp3

I am trying to extract the TrackNy to be "101".  Here's my bad template:

<TRASH>-<TRASH>-26Newd<tracknr:1-1[|]>t<tracknr:2-2[|]>.mp3

Any help is GREATLY appreciated!  Thank you!
Back to top
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Mar. 30 2004,00:08

Your mistake is that you are using fixed length fields without "anchoring" them to any normal field. Also, in this case you don't even need fixed length fields. The easiest working modification of your template is:

<TRASH>-<TRASH>-26Newd<tracknr-1[|]>t<tracknr-2[|]>.mp3

--------------
Software author and website owner
Back to top
Profile PM WEB 
TG4
Board Newbie



Group: Members
Posts: 1
Joined: Mar. 2004
Posted: Mar. 30 2004,02:09

Awesome.  Thanks for the lesson -- that works beautifully. Question: By putting the "<TrackNr-1[|]>t..." part, does that take everything up until it finds a static "t" in the string?

Simply put, your product is awesome -- the help file is very informative and it has been able to do EVERYTHING that I want.  I just registered/purchased my copy.  Thank you for creating such a stellar product, with straight-forward well written help.  :)
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Mar. 30 2004,19:01

I'm glad you like it, thanks for the kind words and thanks for registering. :)

And yes, it will take everything until it finds a "t" (or whatever else you have put as a separator).

--------------
Software author and website owner
Back to top
Profile PM WEB 
3 replies since Mar. 29 2004,21:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]