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.0 w/ 217 presets (2010-12-02)[MM

Postby ZvezdanD » Sun Dec 05, 2010 12:55 pm

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.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.0 w/ 217 presets (2010-12-02)[MM

Postby Davo » Sun Dec 05, 2010 3:50 pm

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 7
MM 4 (Gold)
Davo
 
Posts: 131
Joined: Tue Nov 06, 2007 9:00 pm
Location: Australia

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

Postby Hooterman » Wed Dec 08, 2010 8:26 pm

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!
Hooterman
 
Posts: 3
Joined: Wed Dec 08, 2010 8:16 pm

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

Postby ZvezdanD » Fri Dec 10, 2010 2:41 am

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.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.0 w/ 217 presets (2010-12-02)[MM

Postby Hooterman » Tue Dec 14, 2010 9:11 am

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?
Hooterman
 
Posts: 3
Joined: Wed Dec 08, 2010 8:16 pm

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

Postby ZvezdanD » Wed Dec 15, 2010 3:10 am

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.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.0 w/ 217 presets (2010-12-02)[MM

Postby Peter Panino » Wed Jan 19, 2011 11:57 am

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

Postby Peter Panino » Wed Jan 19, 2011 12:00 pm

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.
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

Postby Hooterman » Wed Jan 19, 2011 12:21 pm

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.
Hooterman
 
Posts: 3
Joined: Wed Dec 08, 2010 8:16 pm

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

Postby ZvezdanD » Wed Jan 19, 2011 2:44 pm

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.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.0 w/ 217 presets (2010-12-02)[MM

Postby Peter Panino » Wed Jan 19, 2011 4:32 pm

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!
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

Postby winniethepujols » Sun Feb 06, 2011 3:22 pm

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!
winniethepujols
 
Posts: 6
Joined: Tue Aug 10, 2010 12:53 pm

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

Postby ZvezdanD » Thu Mar 03, 2011 10:42 am

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.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.1 w/ 217 presets (2011-03-03) [M

Postby Milagro » Sun Mar 13, 2011 7:57 am

Hello can I use the Copy <From Field> to <Into Field>... function to copy the first two characters to a other field?
Milagro
 
Posts: 81
Joined: Sun Jun 20, 2010 7:21 am

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

Postby ZvezdanD » Sun Mar 13, 2011 7:12 pm

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.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 13 guests