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

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.0 w/ 80+ presets (2009-01-05)[MM2+3]

Post by ZvezdanD »

If you want to remove two initially installed toolbar buttons from the toolbar:
1. Open the RegExp Find and Replace dialog box;
2. from the Preset dropdown list choose preset "Increment play counter";
3. turn off the Toolbar button check box;
4. click on the Save button;
5. from the Preset dropdown list choose preset "Decrement play counter";
6. same as 3;
7. same as 4.

If you want to remove those two presets from the list of presets:
8. same as 1;
9. same as 2;
10. click on the Del button and choose Yes to confirm that;
11. same as 5;
12. same as 10.

Maybe you are suggesting me that I should not include those two toolbar buttons to installation by default?
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
martialartsguy
Posts: 312
Joined: Mon Apr 03, 2006 9:11 am
Location: Denver, CO

Re: RegExp Find & Replace 3.0 w/ 80+ presets (2009-01-05)[MM2+3]

Post by martialartsguy »

Nope, that's perfect! And I didn't know you could add more presets to the toolbar, so that's another cool thing you just showed me as well! Thanks! :D
MM Gold since 2006
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.0 w/ 80+ presets (2009-01-05)[MM2+3]

Post by ZvezdanD »

Well, adding/removing presets to the toolbar is main feature of this version, as I wrote in the Information section of the first post of this thread. :wink:
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
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.0 w/ 80+ presets (2008-01-05)[MM2+3]

Post by ZvezdanD »

justin_f wrote:when you use a preset from the list..., after it finishes it automatically creates a Toolbar button. The button goes away after a restart. Not sure if I'm just missing a setting, but I thought I'd ask.
There is a new update (3.1) which has an option to enable/disable that button after a restart.
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
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: RegExp Find & Replace 3.1 w/ 80+ presets (2009-01-10)[MM2+3]

Post by nynaevelan »

Hi ZvezdanD:

With your latest update I am finally able to turn RegExp back on in 3.1, and I have missed it. But of course now you know I need some assistance. Is there any way to turn these three presets into one?

Code: Select all

Preset1=Name: "Add "" [Instrumental]"" to the end of the Title", Description: "Time -> Time [Instrumental]  (only if the Title is not empty)", Shortcut: "", Icon: "", Toolbar: False, FindWhat: "(.+)$", FindInto: "Title", FindRegExp: True, WholeWord: False, ReplaceWith: "$1 [Instrumental]", ReplaceFrom: "Title", ReplaceRegExp: False, ReplaceVBScr: False, MatchCase: False
Preset2=Name: "Add "" Instrumental"" to Lyrics", Description: "Adds Instrumental to Blank Lyrics", Shortcut: "", Icon: "", Toolbar: False, FindWhat: "^.*", FindInto: "Lyrics", FindRegExp: True, WholeWord: False, ReplaceWith: "Instrumental - No Lyrics", ReplaceFrom: "Title", ReplaceRegExp: False, ReplaceVBScr: False, MatchCase: False
Preset3=Name: "Add Instrumental to Custom3 (Custom Occasion)", Description: "Adds Instrumental Comment to Custom Occasion", Shortcut: "", Icon: "", Toolbar: False, FindWhat: "^.*", FindInto: "Custom Occasion", FindRegExp: True, WholeWord: False, ReplaceWith: "Instrumental", ReplaceFrom: "Title", ReplaceRegExp: False, ReplaceVBScr: False, MatchCase: False
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
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.1 w/ 80+ presets (2009-01-10)[MM2+3]

Post by ZvezdanD »

nynaevelan wrote:Is there any way to turn these three presets into one?
Sorry, but with the current version of the script it is only possible to change one field at a time (only exceptions are new Date/Original Date fields which are in the fact a combination of three another fields - (Original) Day, Month and Year). I thought to implement batch possibility which could execute several "simple" presets in a single step, but I am not sure how to realize a user interface in such case. If you have some suggestion, please let me know.
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
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: RegExp Find & Replace 3.1 w/ 80+ presets (2009-01-10)[MM2+3]

Post by nynaevelan »

ZvezdanD wrote:
nynaevelan wrote:Is there any way to turn these three presets into one?
Sorry, but with the current version of the script it is only possible to change one field at a time (only exceptions are new Date/Original Date fields which are in the fact a combination of three another fields - (Original) Day, Month and Year). I thought to implement batch possibility which could execute several "simple" presets in a single step, but I am not sure how to realize a user interface in such case.
Ok, thanks.

ZvezdanD wrote: If you have some suggestion, please let me know.
:lol: :lol: I wouldn't even know where to begin.

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
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.1 w/ 80+ presets (2009-01-10)[MM2+3]

Post by ZvezdanD »

nynaevelan wrote: :lol: :lol: I wouldn't even know where to begin.
I meant on some advice about graphical interface, how it should look alike, not on programing...
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
theaudiobookman
Posts: 1
Joined: Thu Jan 15, 2009 7:28 pm

Re: RegExp Find & Replace 3.1 w/ 80+ presets (2009-01-10)[MM2+3]

Post by theaudiobookman »

Hi,

I first want to thank ZvezdanD for this script; I have been looking for something like this for a while. This script will be really useful for audiobook conversions. I just had a couple of questions about manipulations of the script:

1. I was trying to change the Add the leading zero to the single-digit Track number preset so that an additional zero would be add for single and double digit track numbers. I mean that the single digit track numbers have a zero in the tens and hundreds slots while the double digit track numbers have a zero in the hundreds slot. (Some my audio books have over a hundred tracks).

2. This seems really trivial and there is probably a tool on MM but I was trying to manipulate Assign the Track number and the Title to the filename of the Path preset so that only the title is assign to the filename of the path; some of my Title names already have track numbers in them.

If anyone can help, it would be appreciated. Thanks again
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.1 w/ 80+ presets (2009-01-10)[MM2+3]

Post by ZvezdanD »

theaudiobookman wrote:I was trying to change the Add the leading zero to the single-digit Track number preset so that an additional zero would be add for single and double digit track numbers
Find what:

Code: Select all

^\d\d?$
Regular Expression 1: checked
Replace with:

Code: Select all

Right("00$&", 3)
VBScript expression: checked
theaudiobookman wrote:I was trying to manipulate Assign the Track number and the Title to the filename of the Path preset so that only the title is assign to the filename of the path
Find what:

Code: Select all

(.+?)\\(.+)\\([^\\]+)\.([^\.\\]+)$
Regular Expression 1: checked
Replace with:

Code: Select all

IIf(Len(oSongData.Title) > 0, "$1\$2\" & oSongData.Title & ".$4", "$&")
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
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.2 w/ 90+ presets (2009-01-20)[MM2+3]

Post by ZvezdanD »

There is a new update of this script (3.2). It has improved look of dialog boxes with some skins (custom configurable with CSS files). Supported: Agora, Blue Glass, Blue Monkey, Casino Orange, Eclipse, Glided, MM-Ultimate, Noir, songbirdskin, VitreousBlue, WMP11, Zekton_Bronze, ZuneSkin.
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
stutes
Posts: 101
Joined: Mon May 12, 2003 9:06 pm

Re: RegExp Find & Replace 3.2 w/ 90+ presets (2009-01-20)[MM2+3]

Post by stutes »

I'm not very familiar with regular expressions, so I need some help with RegExp. Wondering how to do the following:
1. Copy/Move the Custom 1 field to the Grouping field
2. Append the Grouping field with a new word, preferrably adding a comma or semi-colon between the word and the original content of the field
3. Do a simply find a replace: find this, replace with that, specified to the grouping field
Version: MediaMonkey 3.1.0.1236
Syncs iPod Touch 2nd Gen (firmware 2.2) and SD cards via card reader
(Touch also syncs with iTunes on a Mac, OS X 10.5, set manage podcasts, apps, photos, contacts & calendar, but NOT music)
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.2 w/ 90+ presets (2009-01-20)[MM2+3]

Post by ZvezdanD »

stutes wrote:1. Copy/Move the Custom 1 field to the Grouping field
Choose the "Copy the Date when the file is last modified to the Date added field" preset and change corresponding fields in the Into and From dropdown lists.
stutes wrote:2. Append the Grouping field with a new word, preferrably adding a comma or semi-colon between the word and the original content of the field
Choose the "Add "Art Rock" as the last item to the multi-valued Genre field" preset, choose Grouping in the Into dropdown and enter the wanted word instead of the Art Rock in the Replace with field.
stutes wrote:3. Do a simply find a replace: find this, replace with that, specified to the grouping field
Choose the "Replace underlines in the Path with spaces" preset, choose Grouping in the Into dropdown and enter what you want in the Find what and Replace with fields.
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
ZvezdanD
Posts: 3264
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 3.3 w/ 90+ presets (2009-02-02)[MM2+3]

Post by ZvezdanD »

There is a new update (3.3). Added auto-repeat of Up/Down buttons in the Export/Import dialog box (with MM 3.1.1220 or up) and alphabetical sort of presets in same dialog.
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
justin_f
Posts: 92
Joined: Thu Nov 22, 2007 11:41 am
Location: Valpo, IN

Re: RegExp Find & Replace 3.3 w/ 90+ presets (2009-02-02)[MM2+3]

Post by justin_f »

ZvezdanD,

How would I move the song version from the title to Custom 1? For example, if the title = Shine Shine (Shadow Dancer Remix), I'd want to move just Shadow Dancer Remix to Custom 1. I checked the presets, but nothing jumped out at me that looked like it would do it. Thanks.

Justin
Post Reply