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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Fri Jan 06, 2017 7:30 pm

No, not everything, just the average user modifiable string part of it.

In a string, characters are strung together to form an array. But in this context, think of it as any
info that you want to use with your tracks. When you look at presets, all the stuff that's like "b\[( )]'$\?.....", you don't want to use any of that.
So look for where you can input stuff that makes sense to you.

These presets often have easy ways to modify info by suggesting what to do with a section like String Caption="String to assign" Value=.
Look around in many of the presets and you will see little sections like that, as if to ask you for a value to input. When you input the value, put it in between
the quotes after the Value equal sign in that section. In your cas you would write, 29/12/2016 where "Encoded by" is. So you would have,
.....Value ="29/12/2016" (include the quotes). Just do it and look at the highlighted results in the display below. It should change before your very eyes :wink:.
Don't worry, just typing the string won't "actually" change anything. You have to click Replace/Replace all, if multiple, at he bottom for that.
My advice would be to follow the Added date naming format in that column if you want everything to be uniform and line up properly, unless you're changing
whole albums at a time and just want it to look different.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

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

Post by dypsis » Fri Jan 06, 2017 9:23 pm

Well done, MMFrLife. It's done.

I understand it a bit more now after your lessons.
The only thing I noticed though is that it altered the track's file date also. I don't know what it changed about the track.
But, I just replaced the affected tracks with my backups, and the Added date still holds.

Thank you. :D

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Fri Jan 06, 2017 9:36 pm

Hang on and I will test in a bit. I'm having a bit of an MM crisis with my .ini file regarding stubborn empty tree node entries.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Fri Jan 06, 2017 10:01 pm

If you are talking about the timestamp, I think that is normal any time the tracks are altered. I think there is a setting to prevent that in Options.
If you are talking about the simple date field/tag, that shouldn't be.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

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

Post by dypsis » Fri Jan 06, 2017 10:28 pm

Yes, I am talking about the track's file in Explorer. The date modified.
It shouldn't modify the track's date considering it is only updating the MediaMonkey database (MM.db).

But, as I said, if I restore a backup of my track(s), then all is still good in the MM database.

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Fri Jan 06, 2017 10:36 pm

Changes in MM also make changes to the tags.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

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

Post by dypsis » Fri Jan 06, 2017 10:41 pm

It shouldn't for Added.
Added is only relevant to MM. It isn't relevant to any other player.

I couldn't see any alterations to my tags, but I successfully restored my tracks and kept the MM database info. :)

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Fri Jan 06, 2017 10:44 pm

Maybe ZvezdanD knows why. Anyway, glad it's working for you! :)
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

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

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

Post by ZvezdanD » Sat Jan 07, 2017 2:31 am

Thanks for the report. It is fixed now.
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

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Sat Jan 14, 2017 11:15 pm

How would I get "Capitalize with exceptions..." to capitalize the beginnings of subtitles/subtitle parts (first letter of first word)?

"In the Space Capsule (the Love Theme)"
"In the Space Capsule (a Love Theme)"
"In the Space Capsule (in Love Theme)"
(the, (a, (in

If the first letter is lowercase, I would like it uppercase.
And to leave it alone, if already uppercase.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

dypsis
Posts: 1084
Joined: Wed Apr 30, 2008 9:51 pm
Location: Brisbane, Australia

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

Post by dypsis » Sun Jan 15, 2017 1:22 am

ZvezdanD wrote:Thanks for the report. It is fixed now.
Thanks for the fixed 4.4.7. :)

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

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

Post by ZvezdanD » Sun Jan 15, 2017 2:26 am

MMFrLife wrote:How would I get "Capitalize with exceptions..." to capitalize the beginnings of subtitles/subtitle parts (first letter of first word)?
You don't want to lowercase "the" (or some another exception) that is after "(", right? You should replace "(?!^)\b" with "\s" in the Find what string. After that, the only exceptions that are after a space character will be set to lowercase.
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

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Sun Jan 15, 2017 7:19 am

ZvezdanD wrote:You don't want to lowercase "the" (or some another exception) that is after "(", right? You should replace "(?!^)\b" with "\s" in the Find what string. After that, the only exceptions that are after a space character will be set to lowercase.
Correct, I want "(the..." to be "(The...", "(in..." to be "(In...".

I replaced "(?!^)\b" with "\s". Now what? Do I add exceptions after doing that, like "(" or "(the" and "(in" somewhere? Exceptions after a space character?
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

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

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

Post by ZvezdanD » Sun Jan 15, 2017 8:58 am

MMFrLife wrote:I replaced "(?!^)\b" with "\s". Now what?
Did you try it? Haven't you got what you wanted?
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

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Post by MMFrLife » Sun Jan 15, 2017 9:45 am

Yes, that's it. You are correct. It also appears to work if you replace just the "\b" part with "\s".
However, I've now discovered why it wouldn't work the first try and that leads me to what I "really" need.

If you do that to the default/unmodified "Capitalize with exceptions...", it works great.
Although, recently I added a modified version of that preset (see here (regarding "\w\..")).

I need to add the new functionality to the already modified version, as referred to in the link.
That's why I couldn't get it to work the first time.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

Post Reply