Page 72 of 108

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

Posted: Wed Sep 02, 2015 9:51 am
by NWDreamer
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.

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

Posted: Wed Sep 02, 2015 10:02 am
by ZvezdanD
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.

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

Posted: Wed Sep 02, 2015 10:50 am
by NWDreamer
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!

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

Posted: Thu Sep 03, 2015 9:42 pm
by dtsig
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

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

Posted: Fri Sep 04, 2015 7:58 am
by ZvezdanD
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.

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

Posted: Fri Sep 04, 2015 9:14 am
by dtsig
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 ..

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

Posted: Mon Sep 14, 2015 8:33 am
by carkey151
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.

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

Posted: Mon Sep 14, 2015 1:27 pm
by ZvezdanD
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.

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

Posted: Tue Sep 15, 2015 7:00 pm
by carkey151
Thank you so very much for the quick response and fix.

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

Posted: Thu Oct 01, 2015 2:04 pm
by MM3 monkey
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.

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

Posted: Thu Oct 01, 2015 2:28 pm
by ZvezdanD
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>

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

Posted: Thu Oct 01, 2015 3:05 pm
by MM3 monkey
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.

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

Posted: Fri Nov 06, 2015 6:59 pm
by nzdreamer55
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

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

Posted: Fri Nov 06, 2015 7:44 pm
by Camus II
nzdreamer55,

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

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

Posted: Sun Nov 08, 2015 3:59 am
by nzdreamer55
Thanks! What if I want to create 3 digit track number from the disc number and the 2 digit track number.?