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

Post a reply

Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: RegExp Find & Replace 4.3 w/ 253 presets (2011-07-06) [MM2+]

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

Post by ZvezdanD » Sun Jan 15, 2017 10:29 am

You couldn't replace "(?!^)\b" with "\s" in your modified preset because it already has "\s" on the begin of the lowercase's exceptions since it is based on the old preset distributed with the freely available version. Now, for the life of me, I cannot remember why I have replaced "\s" with "(?!^)\b" in the new version. It doesn't lowercase exceptions only if they are on the begin of the field, which is not always correct, as you pointed out with the "(" thing, so I will revert that back in the next update.

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.

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?

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?

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.

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

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.

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.

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

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

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.

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.

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.

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.

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

Top