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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

CarlitoGil
Posts: 294
Joined: Sun Sep 07, 2008 10:46 am
Location: Dominican Republic
Contact:

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by CarlitoGil »

Have you thought about adding a replace/replacement token which values come from opening a dialog window with an input box each time the preset is called?


When changing the path field so that the files move to another folder can the dialog asking to move the accompanying files be left for the end of the operation? I'm guessing it's the way MM handles it, so I think they'll really listen if you'll ask.
iTunesMonkey + Acoustid – Find metadata from iTunes and Acoustid
ZvezdanD
Posts: 3141
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by ZvezdanD »

GIL wrote:Have you thought about adding a replace/replacement token which values come from opening a dialog window with an input box each time the preset is called?
Yes, but I am not sure when I would add such thing. It could be even more valuable within Find & Replace dialog box, especially for novices, because it is much easier to adjust e.g. some numerical value with spin box than modifying some complex and hard to understand regular expression. For example, with the Remove any six characters from the end of the Album preset, instead of ".{6}$" I could write something like ".{<Param>}$" and add one new spin box to adjust that value instead to modify the "6" value manually in the Find what box. Another example, with the Add " (Live)" to the end of the Title, instead of the "$1 (Live)" I could write "$1 (<Param>)" and add one new edit box where users could directly type the text which they want to add to the field. However, there are presets which have two or more parameters like Remove specified number of characters from the middle of the Title where we have "^(.{5}).{2}" with two numerical values. There are also some presets which have list of values like the Remove featuring artists from the end of the Title, with the expression "\s*([\(|\[].*)?(?:ft\.|feat\.|featuring|vs\.|versus|pres\.|presents)\s.+[\)|\]]?$", so I should add a new list box for such values together with buttons to add/remove items from it. Well, this could be all nice to see, but it would end with significant changes of dialog GUI which I try to avoid.
GIL wrote:When changing the path field so that the files move to another folder can the dialog asking to move the accompanying files be left for the end of the operation? I'm guessing it's the way MM handles it, so I think they'll really listen if you'll ask.
Unfortunately, I don't think they are listening my suggestions.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Peke
Posts: 14111
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by Peke »

I don't understand much what exactly is required here and what we will not hear?
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum
ZvezdanD
Posts: 3141
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by ZvezdanD »

It would be the best if you install this script and try to move some files to another location by yourself using e.g. the "Move files to <Genre>\<Artist>\<Album>\<Track#> - <Title>.ext" preset. If you have some additional files beside of audio files in the same folder, e.g. album arts or even .html files or anything else, MM displays dialog box asking if you want to move such files together with audio files when the folder is emptied. This is nice, but it displays such dialog after each emptied folder, and if you have selected bunch of files from several folders you would get same dialog box several times which could be really tedious.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Davo
Posts: 374
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by Davo »

Can i remove the Increment & Decrement buttons from the toolbar - I rarely use them & they take up a fair bit of space on the toolbar.

Regards
David
____________________________
Windows 10
MM 5 Beta
Just JP
Posts: 151
Joined: Sun Oct 01, 2006 6:53 pm
Location: New Jersey, USA

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by Just JP »

While I find this script both very useful and powerful, I would also believe it would be nice to remove the two buttons and free up some space.

Jim
Image
SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by SpritHansi »

Hi!
Thanks for a nice script. I need help to config some scripts I need, and hope someone can help me
1. Capitalize every word in artist and album, exept words like ft, feat. vs, and capitalize ONLY the first word in the tittle.
2. Lowercase words like Singel, Edit, Remix, Mix
Regards
SpritHansi
ZvezdanD
Posts: 3141
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by ZvezdanD »

Davo wrote:Can i remove the Increment & Decrement buttons from the toolbar - I rarely use them & they take up a fair bit of space on the toolbar.
Just JP wrote:I would also believe it would be nice to remove the two buttons and free up some space.
http://www.mediamonkey.com/forum/viewto ... 41#p184241
http://www.mediamonkey.com/forum/viewto ... 51#p184251
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Just JP
Posts: 151
Joined: Sun Oct 01, 2006 6:53 pm
Location: New Jersey, USA

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by Just JP »

As usual the answer was right in front of me. :oops: I'm going to make the change right now.

Thanks for the help and for making some excellent scripts.

Jim
Image
ZvezdanD
Posts: 3141
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by ZvezdanD »

SpritHansi wrote:1. Capitalize every word in artist and album, exept words like ft, feat. vs, and capitalize ONLY the first word in the tittle.
Did you try the "Capitalize the Title with exceptions" preset or maybe "Uppercase the first letter of each line or sentence of the Lyrics and lowercase others" preset? Of course, you should change Lyrics to the wanted field with the Into drop-down list.
SpritHansi wrote:2. Lowercase words like Singel, Edit, Remix, Mix
You could try with following settings:
Find what:

Code: Select all

\b(Single|Edit|Remix|Mix)\b
Regular expression 1: checked
Replace with:

Code: Select all

LCase("$1")
VBScript expression: checked
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
Davo
Posts: 374
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by Davo »

Thanks ZvezdanD - I mostly use your very handy presets so i rarely look at the Dialog box.

Regards
David
____________________________
Windows 10
MM 5 Beta
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by rovingcowboy »

okay with your script how does it differ from bexs Add/Remove PlayStat 1.2.1 (2008-12-20) [MM3] script.

what i am in need of is a simple script like the one i use from diddeleedoo that just changes the playcount in the list view area screen display and will be able to run by a task job in the windows task scheduler.

but his is for mm 2 i don't need to touch the playcount in the tables of the database that is not displayed on the screen for us to see. as they are not used with the autoplaylists in mm 2, i believe they are the same with mm 3.

so is your script simple like that or do i have to go in and make option changes each time to get it to change the count i want on all the songs. at once.

8)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
ZvezdanD
Posts: 3141
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by ZvezdanD »

No, this script is not simple like that. You don't need to change options every time since you could save them as a preset, but you need to select tracks which you want to modify, because it is not working on entire database (at least not currently).
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by rovingcowboy »

thanks
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: RegExp Find & Replace 3.5 w/ 101 presets (2009-05-14)[MM2+3]

Post by nynaevelan »

Hi Zvezdand:

A few beta's back there was a problem that caused the lyrics to be truncated. Since then I have been fixing them as I found them but I would like to fix them all now while I am between massive updates. But I do not know of a way to identify all the affected tracks. Is there a way for RegEx to find tracks that have lyrics greater than 1 line but less than 10? I looked through the presets but I do not see one I can change to meet my needs, maybe I missed it??

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
Post Reply