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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

NWDreamer
Posts: 103
Joined: Fri Aug 24, 2012 4:12 am

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

Post by NWDreamer » Wed Sep 02, 2015 9:51 am

ZvezdanD wrote:
NWDreamer wrote:My preferred format is every word (including those in parentheses) with the first letter capitalized. Example: "Another Brick In The Wall (Remastered)" So I still don't see a real easy way to accomplish this, but I'll keep trying.
ZvezdanD wrote:Did you try any of "Capitalize..." presets? They would uppercase the first letters and lowercase the other ones for all words in the specified field.
Looks like you're so quick with your replies that you were posting while I was! I went through the Capitalize presets but may have overlooked potential ones since they said "Lyrics" in them. Now that I realize you can change the <Into Field> I will revisit them.
Craig B. (a.k.a., NW Dreamer - Gold MediaMonkey user.)

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

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

Post by ZvezdanD » Wed Sep 02, 2015 10:02 am

NWDreamer wrote:It's hard to go through that large list to find what you want
Is that harder than this:
NWDreamer wrote:I was using it with the Title field to find " a" (space, lowercase 'a') and replace it with " A" then " b" to be replaced with " B" and so on. Then I would go through the whole exercise again with "(a" to "(A" etc.
that you wanted to do?
NWDreamer wrote:I went through the Capitalize presets but may have overlooked potential ones since they said "Lyrics" in them.
The two predefined "Capitalize <Into Field>..." presets don't have "Lyrics" in their names and by default they could be used with any textual 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 / 5.4  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.7 / 4.0  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.3 / 2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

NWDreamer
Posts: 103
Joined: Fri Aug 24, 2012 4:12 am

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

Post by NWDreamer » Wed Sep 02, 2015 10:50 am

Yep, you are right. I went through the Uppercase presets (which say "Lyrics") and missed the Capitalize ones completely. *Sigh...* :oops:

I'm trying to load about 300,000 songs into MM (105,000 in so far) and just dealing with that type of quantity is obviously making my head spin. Sorry!
Craig B. (a.k.a., NW Dreamer - Gold MediaMonkey user.)

dtsig
Posts: 3035
Joined: Mon Jan 24, 2011 6:34 pm

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

Post by dtsig » Thu Sep 03, 2015 9:42 pm

ZvezdanD
Hate to bother you with this but I have 2 questions ..

1) I modified the script you noted earlier as I needed to append year to the title on movies. So i went with
^.*
IIf(Len("$&") > 0, " $&", "") & " - " & oSongData.Year

It went pretty well but I feel it is all wrong as now on the 30-40 I tried it on all have a leading space ..

2) What would be used to remove a leading space .. i can edit by hand but ..

Thanks
DSig
Where's the db and ini stored
Reporting Bugs
Where tags are stored

Not affiliated with MediaMonkey ... just a RABID user/lover
DTSig

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

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

Post by ZvezdanD » Fri Sep 04, 2015 7:58 am

dtsig wrote:I modified the script you noted earlier as I needed to append year to the title on movies. So i went with
^.*
IIf(Len("$&") > 0, " $&", "") & " - " & oSongData.Year
Which one did you modify? I posted recently two presets to you and none of them is similar to that.
dtsig wrote:What would be used to remove a leading space .. i can edit by hand but ..
There is one predefined preset supplied with the add-on which could remove leading and trailing spaces from any specified field.

By the way, I strongly suggest that you use the Preset Settings dialog box (former RegExp Find and Replace) when you want to modify tracks using some new and/or untested preset, instead of applying that preset directly using the hotkey/toolbar or Tag Manipulation menu. In the mentioned dialog box you could see the effect which you would get with such preset on the selected tracks without (i.e. before) the actual modification.
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 / 5.4  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.7 / 4.0  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.3 / 2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

dtsig
Posts: 3035
Joined: Mon Jan 24, 2011 6:34 pm

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

Post by dtsig » Fri Sep 04, 2015 9:14 am

Thanks .. I did look in the presets but 254 are a lot to go through and my eyes aren't what they used to be. I will look for it again.

I did use the dialog box but didn't see the space in the beginning of the 'what it will be'. All my fault and not anything to do with your tool which as always did just what i asked it to do ...
Like when we moved from procedural language to C .. did just what we asked .. just much faster <G>

Thanks again ..
Where's the db and ini stored
Reporting Bugs
Where tags are stored

Not affiliated with MediaMonkey ... just a RABID user/lover
DTSig

carkey151
Posts: 20
Joined: Fri Jan 22, 2010 9:14 am

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

Post by carkey151 » Mon Sep 14, 2015 8:33 am

ZvezdanD:
Some of the "Tag Manipulation Presets" (from the “Light Bulb Icon”) are not working. When I try to use some of the presets, I get a warning box that says, for example:

The preset “Assign “Various Artist” to Album Artist field” cannot be applied because it doesn't exist in INI file.

If I open the Regexp Find and Replace box (Magnifying Glass with Arrows Icon) and use the “Replace” button, on the same preset, it works fine. No problem.

To name just a few of the presets:

Assign “Various Artist” to Album Artist field
Swap first and last name of <Into Field> with added “,”...
Swap last and first name of <Into Field> with removed ", "…
Add " (Live)" to the end of Title
Remove " (Live)" or " [Live]" from the end of Title

I've opened the RegExpReplace.ini and the MediaMonkey.ini and they are clearly listed there.
“Regexp Find and Replace” is not listed in either Scripts.ini files, if it's supposed to be.

I haven't checked all 253 presets but there are quite a few that I get the same “warning”. I have tried uninstalling and reinstalling RegExp clean, without any of my preferences, but get the same results.

I have MM 4.1.8.1751 Gold and Windows 10 Pro. This is the first time I've tried using Regexp Find and Replace since upgrading to Windows 10. Is this a problem with Windows 10?

Thanks for any help.

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

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

Post by ZvezdanD » Mon Sep 14, 2015 1:27 pm

carkey151 wrote:Some of the "Tag Manipulation Presets" (from the “Light Bulb Icon”) are not working.
The presets with the double quotes in their names was problematic. There is the new release of the add-on v4.4.2 with fixed that bug. Thanks for the report.
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 / 5.4  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.7 / 4.0  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.3 / 2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

carkey151
Posts: 20
Joined: Fri Jan 22, 2010 9:14 am

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

Post by carkey151 » Tue Sep 15, 2015 7:00 pm

Thank you so very much for the quick response and fix.

MM3 monkey
Posts: 445
Joined: Mon Aug 27, 2007 2:34 am

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

Post by MM3 monkey » Thu Oct 01, 2015 2:04 pm

Hello, ZvezdanD.

I can't work out how to do something probably simple.

In the Title field, I've got

Title – Artist (eg. "Hey Jude – The Beatles and The Rolling Stones")

I'd like to move everything after "– " to the Artist field. (ideally replacing " and " with "|" but that's being greedy!)

(I can remove " – Artist" from the Title field using Remove the end of <Into Field> after (and including) " - "... so I fgure it must be easily possible.)

It would be great if you could help me.

Thanks as ever.
MMW 4.1.9.1764|MMA 1.1.3.0482|Android 5.0|Win 8.1 64 bit

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

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

Post by ZvezdanD » Thu Oct 01, 2015 2:28 pm

MM3 monkey wrote:In the Title field, I've got

Title – Artist (eg. "Hey Jude – The Beatles and The Rolling Stones")

I'd like to move everything after "– " to the Artist field.
Preset: Assign the end of <From Field> after specified string to <Into Field> (only if exists)
MM3 monkey wrote: (ideally replacing " and " with "|" but that's being greedy!)
Preset: Replace specified string with another one in <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 / 5.4  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.7 / 4.0  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.3 / 2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

MM3 monkey
Posts: 445
Joined: Mon Aug 27, 2007 2:34 am

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

Post by MM3 monkey » Thu Oct 01, 2015 3:05 pm

ZvezdanD wrote:
MM3 monkey wrote:In the Title field, I've got

Title – Artist (eg. "Hey Jude – The Beatles and The Rolling Stones")

I'd like to move everything after "– " to the Artist field.
Preset: Assign the end of <From Field> after specified string to <Into Field> (only if exists)
MM3 monkey wrote: (ideally replacing " and " with "|" but that's being greedy!)
Preset: Replace specified string with another one in <Into Field>
Oh wow. And so quick.

That second one is massive.

Thank you VERY much.
MMW 4.1.9.1764|MMA 1.1.3.0482|Android 5.0|Win 8.1 64 bit

nzdreamer55
Posts: 45
Joined: Wed Nov 26, 2008 6:47 pm

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

Post by nzdreamer55 » Fri Nov 06, 2015 6:59 pm

Hello everyone,

I was wondering if I can use the fields in replacing stuff. Things like <Album Artist>, <Album>, <Track#>, <Artist>.<Title> ?

I want to change the Album name from Album to VA - Album with this plug in. I tried just putting in <Album> into the replace box but it just took it literally and replaced all my album titles with <Album>


Thanks

Camus II

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

Post by Camus II » Fri Nov 06, 2015 7:44 pm

nzdreamer55,

Use Preset 45 "Add specified string to the begin of <Into Field> (only if not empty)..."

nzdreamer55
Posts: 45
Joined: Wed Nov 26, 2008 6:47 pm

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

Post by nzdreamer55 » Sun Nov 08, 2015 3:59 am

Thanks! What if I want to create 3 digit track number from the disc number and the 2 digit track number.?

Post Reply