RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [MM2+]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby nynaevelan » Sun Jul 03, 2011 7:33 am

Yes it is, at least it is for me. :wink:

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nynaevelan
 
Posts: 5540
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby beg » Sun Jul 03, 2011 9:12 am

thx Nyn,

also for MM4 portable?
Sorry this is a little off topic, but regexp is the first addon I'd like to install.
I imagine it's not possible to simply open/start the mmip in case of the portable MM4 version?
How do I install the addon here?

sorry for being a little off topic here..

Bernhard
beg
 
Posts: 146
Joined: Wed Feb 04, 2009 12:36 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby nynaevelan » Sun Jul 03, 2011 9:31 am

Now I am not sure about portable because I do not use that.
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
nynaevelan
 
Posts: 5540
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby cheerios » Sun Jul 03, 2011 1:55 pm

Hi ZvezdanD,

I'm using version 4.2.1. Basically the replacement title is unchanged - it is the same as the original title. Still trying to figure out what's going wrong...I tried to attach a screenshot of the dialog but it looks like I need an imageshack account to do this?
cheerios
 
Posts: 7
Joined: Sat Jul 02, 2011 3:32 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby ZvezdanD » Sun Jul 03, 2011 2:06 pm

cheerios wrote:I tried to attach a screenshot of the dialog but it looks like I need an imageshack account to do this?

Yes, any image service could do the job. I am using imageshack for screenshots here. You don't need to register in imageshack to be able to upload bitmap file.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2590
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby ZvezdanD » Sun Jul 03, 2011 2:13 pm

beg wrote:I imagine it's not possible to simply open/start the mmip in case of the portable MM4 version?

I didn't try the portable version, but you could try at least the suggestion which I described in the Installation section of the first post for MM2: rename .mmip extension to .zip and extract .vbs, .ico and .ini files and SkinStyle folder to the Scripts\Auto sub-folder of the folder where you have MM.DB database file.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2590
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby cheerios » Sun Jul 03, 2011 3:25 pm

ZvezdanD wrote:
cheerios wrote:I tried to attach a screenshot of the dialog but it looks like I need an imageshack account to do this?

Yes, any image service could do the job. I am using imageshack for screenshots here. You don't need to register in imageshack to be able to upload bitmap file.


Great, hope this helps...

Image

Uploaded with ImageShack.us
cheerios
 
Posts: 7
Joined: Sat Jul 02, 2011 3:32 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby ZvezdanD » Sun Jul 03, 2011 4:09 pm

cheerios wrote:Great, hope this helps...

OK, you could try with this Replace with string:
Code: Select all
Eval(IIf(Len(RegExp(oSongData.Path, SetVar(0, ".+?\\.+\\PodcastName_([^\\]+)(\d\d)(\d\d)_(Track \d\d)\.[^\.\\]+$"), 0)), "DateISO(CDate(RegSub(oSongData.Path, GetVar(0), ""$1/$2/$3""))) & RegSub(oSongData.Path, GetVar(0), "" $4"")", """$&"""))
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2590
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby cheerios » Sun Jul 03, 2011 4:32 pm

ZvezdanD wrote:
cheerios wrote:Great, hope this helps...

OK, you could try with this Replace with string:
Code: Select all
Eval(IIf(Len(RegExp(oSongData.Path, SetVar(0, ".+?\\.+\\PodcastName_([^\\]+)(\d\d)(\d\d)_(Track \d\d)\.[^\.\\]+$"), 0)), "DateISO(CDate(RegSub(oSongData.Path, GetVar(0), ""$1/$2/$3""))) & RegSub(oSongData.Path, GetVar(0), "" $4"")", """$&"""))



Brilliant!! Thank you so much for all your help.I was beginning to pull my hair out!

OK, I'm getting greedy now:-) How can I adapt this to handle

(i) a varying length string followed by an underscore in place of PodcastName
(ii) store the above string in the Custom1 tag
cheerios
 
Posts: 7
Joined: Sat Jul 02, 2011 3:32 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby ZvezdanD » Sun Jul 03, 2011 4:46 pm

cheerios wrote:How can I adapt this to handle

(i) a varying length string followed by an underscore in place of PodcastName

Code: Select all
Eval(IIf(Len(RegExp(oSongData.Path, SetVar(0, ".+?\\.+\\[^\\]+_([^\\]+)(\d\d)(\d\d)_(Track \d\d)\.[^\.\\]+$"), 0)), "DateISO(CDate(RegSub(oSongData.Path, GetVar(0), ""$1/$2/$3""))) & RegSub(oSongData.Path, GetVar(0), "" $4"")", """$&"""))


cheerios wrote:(ii) store the above string in the Custom1 tag

Choose Custom 1 from the Into dropdown list.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2590
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby cheerios » Sun Jul 03, 2011 7:11 pm

ZvezdanD wrote:
cheerios wrote:How can I adapt this to handle

(i) a varying length string followed by an underscore in place of PodcastName

Code: Select all
Eval(IIf(Len(RegExp(oSongData.Path, SetVar(0, ".+?\\.+\\[^\\]+_([^\\]+)(\d\d)(\d\d)_(Track \d\d)\.[^\.\\]+$"), 0)), "DateISO(CDate(RegSub(oSongData.Path, GetVar(0), ""$1/$2/$3""))) & RegSub(oSongData.Path, GetVar(0), "" $4"")", """$&"""))


Works great - thanks!

cheerios wrote:(ii) store the above string in the Custom1 tag

Choose Custom 1 from the Into dropdown list.


Sorry, i probably did not make myself too clear. I meant saving the variable length string (PodcastName) in Custom1. But I realize that this is probably a two step process since we have already set Title as the into field. I could retrieve this string into Custom1 by using Autotag by Filename and then use RegExp to generate the Title. The Custom1 part is not really a big deal. You've already taken care of the heavy lifting with the code for Title.
Although if you have any thoughts on this I'd love to hear them.

Appreciate all your help!
cheerios
 
Posts: 7
Joined: Sat Jul 02, 2011 3:32 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby ZvezdanD » Mon Jul 04, 2011 6:01 am

cheerios wrote:I meant saving the variable length string (PodcastName) in Custom1.

You could use the ""Assign the begin of <From Field> before specified string to <Into Field>..." preset with specified "_" for "Assign string before", Source field = Filename, Destination = Custom 1.
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2590
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby cheerios » Mon Jul 04, 2011 5:46 pm

ZvezdanD wrote:
cheerios wrote:I meant saving the variable length string (PodcastName) in Custom1.

You could use the ""Assign the begin of <From Field> before specified string to <Into Field>..." preset with specified "_" for "Assign string before", Source field = Filename, Destination = Custom 1.


Thanks ZvezdanD - I like the fact that I can make all the changes with one addon. Great support!
cheerios
 
Posts: 7
Joined: Sat Jul 02, 2011 3:32 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby Alterx » Tue Jul 05, 2011 5:43 pm

Hi.

I have problems using the preset "Add the leading zero to the single-digit Track number".

the problem is that i can see the new value in the RegExp window but when i click on the replace button the value in Mediamonkey remain the same and no cahnge has made.

:(

thanks for help.

Andrea
Alterx
 
Posts: 19
Joined: Fri Jul 03, 2009 2:12 pm

Re: RegExp Find & Replace 4.2 w/ 253 presets (2011-06-22) [M

Postby ZvezdanD » Wed Jul 06, 2011 3:46 am

Alterx wrote:I have problems using the preset "Add the leading zero to the single-digit Track number".

Thanks for the report. There is the new update, v4.3 - 2011-07-06:
* Added: independent toolbar for RegExp buttons instead of Search toolbar [MM4];
* Fixed: assigning numerical values to textual fields, e.g. Track # (broken in v4.2).
Magic Nodes 4.2 (2011-07-01) RegExp Find & Replace 4.3 (2011-07-06)  Invert Selection/Select None 1.5 (2012-02-04)  Export M3Us/Create Playlists for Child Nodes 3.6.1 (2012-01-09)  Expand Child Nodes/Expand All 1.1.1 (2012-02-13)  Event Logger 2.4.1 (2012-02-06)  Filtered Statistics Report 1.5.1 (2009-10-09)  Track Redirection & Synchronization 3.4 (2012-10-08)  Restore/Synchronize Database 3.1.1 (2012-05-31)  Find Currently Playing Track 1.2 (2012-02-14)  Queue List 1.2 (2012-02-06)  Add to Library on Play 1.0 (2010-10-20)  Tree Report for Child Nodes 1.1 (2010-11-04)  Update Location of Files in Database 1.3.3 (2012-06-12)  Inherit Child Playlists 1.0 (2012-01-16)
Add Currently Playing/Selected Track(s) to Playlist 1.1.1 (2012-02-06)
ZvezdanD
 
Posts: 2590
Joined: Thu Jun 08, 2006 7:40 pm

PreviousNext

Return to Need Help with Addons?

Who is online

Users browsing this forum: No registered users and 11 guests