IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Searching filename to generate %title% from multiple hyphens
kittmaster
post Jan 14 2012, 23:40
Post #1


Member


Group: Full Members
Posts: 81
Joined: 14-September 10
From: Providence RI
Member No.: 12931
Mp3tag Version: 2.52



I have these files that have all hyphens and I'm having a hard time to figuring out a regular expression with a proper guess pattern to populate the Title tag. Here is an example:

61-Oh-Yeah-1Bar-61.2bpm.mp3

So the title is "Oh-Yeah-1Bar"

I can remove the hyphens later to clean it up. I have various files that have variants of the file name with variants of the size of the bpm at the end of file. So my simple search of "everything BETWEEN the hyphens" would then create my %title% for me.

Can someone help me build an expression to have everything "between" the first hyphen to the last hyphen to become my new title tag?

Thank you

Chris

Go to the top of the page
 
+Quote Post
pone
post Jan 15 2012, 10:22
Post #2


Member


Group: Full Members
Posts: 1688
Joined: 15-March 09
From: Germany
Member No.: 9103
Mp3tag Version: 2.59b



ZITAT(kittmaster @ Jan 14 2012, 23:40) *
Can someone help me build an expression to have everything "between" the first hyphen to the last hyphen to become my new title tag?


Action: Format Value
Field: TITLE
Formatstring: $regexp(%_filename%,.+?-(.+)-.+,$1)
Go to the top of the page
 
+Quote Post
kittmaster
post Jan 15 2012, 23:17
Post #3


Member


Group: Full Members
Posts: 81
Joined: 14-September 10
From: Providence RI
Member No.: 12931
Mp3tag Version: 2.52



I'll give that a whirl, thank you!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2014 - 18:20