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

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by ZvezdanD »

Davo wrote:I would appreciate it if you could show me how to remove parentheses (or Brackets) from words. I've tried but i cannot figure this out.
I am not sure that understand what you want exactly, maybe you should give some examples of string before and after modification. Do you want to remove only parentheses, or you want to remove the text between parentheses as well? Do you want to remove parentheses only if they are at the end of the string, or you want to remove them not matter where they are? There are several preset with similar purpose, e.g. "Remove (...) or [...] from the begin of <Into Field>...", "Remove (...) or [...] from the end of <Into Field>...", "Remove parenthesis that doesn't have pair from <Into Field>...", "Remove bracket that doesn't have pair from <Into Field>...". The preset which should remove any parentheses or brackets, not matter where they are in the string, is really simple, but I am not sure how much it could be useful:
Find what: [()[\]{}]
Regular expression 1: checked
Replace with: empty
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: 435
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by Davo »

Thanks - I want to keep the text so your preset is exactly what i need. It will be useful especially with classical music where the tagging is rarely consistent & words are put in brackets for no good reason. eg -
Title = Cto. for Oboe and Violin Bb maj, RV 548: 1. (Allegro)
Title = Cto. for Oboe and Violin Bb maj, RV 548: 2. Largo

Regards - David
David
____________________________
Windows 10
MM 5 Beta
Hooterman
Posts: 3
Joined: Wed Dec 08, 2010 8:16 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by Hooterman »

Hey guys, I absolutely love RegExp and all it's presets, but I'm in need of making a small edit to one of them that I'm hoping somebody here can help me with.

The preset I'm talking about is this one "Copy featuring artists from the end of Artist to the end of Title and put them within ( )"

The current preset already checks for different variations like Ft, featuring, or [ ]'s instead of ( )'s. But I'd like to edit it so that when it copies the featured artist over to the Title, that it also checks that it's using the form "(feat *artistname*).

Example:

Artist: Swedish House Mafia (Ft. Pharrell)
Title: One (Your Name)

I'd like it to change it to:
Artist: Swedish House Mafia
Title: One (Your Name) (feat Pharrell)

I hope this makes sense, thanks guys!
ZvezdanD
Posts: 3271
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by ZvezdanD »

Hooterman wrote:Example:

Artist: Swedish House Mafia (Ft. Pharrell)
Title: One (Your Name)

I'd like it to change it to:
Artist: Swedish House Mafia
Title: One (Your Name) (feat Pharrell)
You could do that using 3 presets:
- Copy featuring artists from the end of Artist to the end of Title and put them within ( )
- Fix common words (featuring, presents, versus) in <Into Field>...
- Remove featuring artists or [(featuring artists]) from the end of <Into Field>...
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
Hooterman
Posts: 3
Joined: Wed Dec 08, 2010 8:16 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by Hooterman »

ZvezdanD wrote:
Hooterman wrote:Example:

Artist: Swedish House Mafia (Ft. Pharrell)
Title: One (Your Name)

I'd like it to change it to:
Artist: Swedish House Mafia
Title: One (Your Name) (feat Pharrell)
You could do that using 3 presets:
- Copy featuring artists from the end of Artist to the end of Title and put them within ( )
- Fix common words (featuring, presents, versus) in <Into Field>...
- Remove featuring artists or [(featuring artists]) from the end of <Into Field>...
This method works pretty good. Thanks!

I've run into a couple things with it though that I'd like to tweak. One it refuses to not capitalize Feat when it moves it. I would prefer it was "feat" not "Feat". This is a small thing, but just a preference if it would be an easy tweak.

Secondly, I've got some albums that use the form "f. <artist>". None of the scripts pick this form up. Is there anyway to adjust them for this?
ZvezdanD
Posts: 3271
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by ZvezdanD »

Hooterman wrote:it refuses to not capitalize Feat when it moves it. I would prefer it was "feat" not "Feat". This is a small thing, but just a preference if it would be an easy tweak.
The first suggested preset does not change capitalization, it just copies the specified part of the string from Artist to Title. The second suggested preset change all feat., Feat, FEAT, and so on, into ft.. If you want some another string instead of "ft." you could replace that part into the Replace with string (of course, after that you should click on the Update button to save the changed preset).
Hooterman wrote:I've got some albums that use the form "f. <artist>". None of the scripts pick this form up. Is there anyway to adjust them for this?
I am not sure that understand what you want, but I think that you could try the "Remove the end of <Into Field> after (and including) specified string..." or "Remove featuring artists or [(featuring artists]) from the end of <Into Field>..." preset.
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
Peter Panino
Posts: 130
Joined: Sat Nov 06, 2010 1:59 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by Peter Panino »

Unfortunately adding/removing toolbar buttons for the actions does not work!

MediaMonkey Gold 3.2.4.1304
Last edited by Peter Panino on Wed Jan 19, 2011 1:10 pm, edited 1 time in total.
Peter Panino
Posts: 130
Joined: Sat Nov 06, 2010 1:59 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by Peter Panino »

Isn't there a way to alphabetically sort the list of actions? Actually it is very difficult to find a desired action inside the huge list.
Hooterman
Posts: 3
Joined: Wed Dec 08, 2010 8:16 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by Hooterman »

Peter Panino wrote:Isn't there a way to alphabetically sort the list of actions? Actually it is very difficult to find a desired action inside the huge list.
I would love an option like this.
ZvezdanD
Posts: 3271
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by ZvezdanD »

Peter Panino wrote:Unfortunately adding/removing toolbar buttons for the actions does not work!

MediaMonkey Gold 3.2.4.1304
Just tried and it works fine, even with MediMonkey 4.0.
Peter Panino wrote:Isn't there a way to alphabetically sort the list of actions?
Open Edit / RegExp Export/Import diaog box and click on the header of the table (Presets from MediaMonkey.ini).
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
Peter Panino
Posts: 130
Joined: Sat Nov 06, 2010 1:59 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by Peter Panino »

adding/removing toolbar buttons
OK, I found out that I have to click the Update button. This seems misleading to me, as the user would think that the Update button just updates the changed script itself and not remove or add the toolbar button which is something different.
alphabetically sort the list of actions
Thanks, now it is sorted!
winniethepujols
Posts: 8
Joined: Tue Aug 10, 2010 12:53 pm

Re: RegExp Find & Replace 4.0 w/ 217 presets (2010-12-02)[MM

Post by winniethepujols »

Hey, I just wanted to say "thank you" for this script. I had roughly 2,700 songs I was going to have to rename in groups of about 20 at a time, but then I found this gem and got it all done in about five minutes. Very impressive tool!
ZvezdanD
Posts: 3271
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.1 w/ 217 presets (2011-03-03) [M

Post by ZvezdanD »

There is the new update of this add-on, v4.1 - 2011-03-03:
* Added: Start Time, Stop Time and Skip Counter fields (Start Time and Stop Time values in milliseconds) [MM4];
* Added: MapChrCase and MapArrayCase custom functions, modified MapChr and MapArray functions (MapChrCase has same behavior as old MapChr and MapArrayCase has same behavior as old MapArray, MapArrayCase is similar to MapArray, but the replaced string would be capitalized if the first character of the original string is in upper case. Preset example: "Remove diacritical marks...");
* Improved: import/export of presets with the same name, but different contents;
* Fixed: install of sample presets when add-on is installed in local folder [MM4];
* Fixed: skin styles path [MM4];
* Fixed: error with some fields (Filename, Date, ...) when Regular expression 2 is turned on.
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
Milagro
Posts: 90
Joined: Sun Jun 20, 2010 7:21 am

Re: RegExp Find & Replace 4.1 w/ 217 presets (2011-03-03) [M

Post by Milagro »

Hello can I use the Copy <From Field> to <Into Field>... function to copy the first two characters to a other field?
ZvezdanD
Posts: 3271
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 4.1 w/ 217 presets (2011-03-03) [M

Post by ZvezdanD »

Milagro wrote:can I use the Copy <From Field> to <Into Field>... function to copy the first two characters to a other field?
No, that preset copies whole field into another one. You need something like this:
Find what: ^.*
Into: whatever (e.g. Track #)
Regular expression 1: checked
Replace with: ..
From: whatever (e.g. Filename)
Regular expression 2: 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
Post Reply