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

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

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

RegExp Find & Replace Won't Work on Comment Field

by iampariah » Fri Sep 15, 2023 4:58 pm

I have RegExp Find & Replace (paid version) and love it. I can do so much to organize my library, but I'm having a problem where, no matter what I do, it won't work with the Comment field.

I try to search for
^(.*)
with Regular Expression in Comment field

and replace with
$1
Tag: Female Fronted

(or anything in the Replace with) field.

BUT, the Into field always changes into Title, Composer, or some other field. It seems to refuse to search the Comment field. It also wraps the Preset title in quotation marks, unlike all my other custom presets.

Help?! I'm trying to use Comment as a way to provide a taxonomy outside Genre for specialty organization.

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

by cokehearth » Fri Sep 01, 2023 12:51 am

Hi,
Another request - let's see if this one is possible (I have tried searching, again, to no avail).

Is it possible to have a playcount synced across songs that share the same title and artist?

I have tried playing with the following script:

Code: Select all

IfNull(SQLQuery("SELECT Max(Playcounter) FROM Songs WHERE IDAlbum = " & oSongData.Album.ID & " GROUP BY IDAlbum"), "$&")
Which works great to make all the tracks on an album have the same playcount. But in trying various GROUP BY options, and altering the IDAlbum, I just can't make it work so that it syncs the playcount across tracks with the same artist and title?

Am I being really dim and missing something obvious?

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

by ZvezdanD » Mon Jan 09, 2023 12:28 am

cldcp00 wrote: Sun Jan 08, 2023 7:39 pm Problem now is that when I try to reinstall aq message comes up that it was not installed.
What exactly that message says? Could you post its screenshot?

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

by cldcp00 » Sun Jan 08, 2023 7:39 pm

I am having some issues reinstalling this add-on.

For some reason the add-on just seems to have disappear from my Mediamonkey menu even thought the Extension list says its still there.

When I try to uninstall its says that the uninstall file (VBS) is missing so I deleted the folder in AppDATA and it was no longer in the Extension list.

Problem now is that when I try to reinstall aq message comes up that it was not installed.

I think it was not cleanly uninstalled

So please could you advise how I can get it reinstalled

I am using Version 4 of the software on Windows 10

Kind Regards

Desmond

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

by cokehearth » Wed Nov 30, 2022 9:19 am

cokehearth wrote: Tue Nov 01, 2022 3:44 am Hello brain trust!

Is it possible to get the FIRST letter of each artist of a track and copy that to genre?

I've managed to use Left(oSongData.ArtistName,1), but this does not take into account tracks with multiple artists (separated with a semi-colon).

So, for example, "Madonna" would become "M".

But, if it is, say, "Madonna; Britney Spears", it'd be great if it could return "M; B".

Is it possible?

Many thanks!
I apologise for bumping the thread unnecessarily, but I've been trying to accomplish this by trying out various codes for a month now, and sadly I'm not getting anywhere.

If there's anyone who knows a possible solution, I'd be most grateful!

ETA: I do have the enhanced version of the plugin, if that helps.

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

by cokehearth » Tue Nov 01, 2022 3:44 am

Hello brain trust!

Is it possible to get the FIRST letter of each artist of a track and copy that to genre?

I've managed to use Left(oSongData.ArtistName,1), but this does not take into account tracks with multiple artists (separated with a semi-colon).

So, for example, "Madonna" would become "M".

But, if it is, say, "Madonna; Britney Spears", it'd be great if it could return "M; B".

Is it possible?

Many thanks!

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

by ZvezdanD » Sat Sep 03, 2022 12:41 am

There is an explanation about that in the Compatibility section on the web page of the add-on.

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

by Gibbs » Wed Aug 31, 2022 1:56 pm

Any intention of migrating to MM5 ? will gladly support. Best MM tools

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

by AlanH » Mon Jul 18, 2022 2:00 am

Thanks all sorted now.

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

by MMFrLife » Sun Jul 17, 2022 2:50 pm

AlanH wrote: Sun Jul 17, 2022 1:58 pm ...copy the quality field to the end of the album name with - used as a seperator so as an example.
"Greatest hits" became "Greatest hits - Flac"
Probably more than one way, but here is one -
Insert <From Field> to <Into Field> after specified string... [#44 in latest version]

Tune-

SF: Extension
DF: Album

IA: empty

ARS: ticked

P: ' - '
S: empty

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

by AlanH » Sun Jul 17, 2022 1:58 pm

Can anyone help me, i just had to replace my laptop so reloaded the donation version of regexp, now i cant find a specific preset i used to use. It allowed me to copy the quality field to the end of the album name with - used as a seperator so as an example.

"Greatest hits" became "Greatest hits - Flac"

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

by Asheville » Tue May 03, 2022 9:48 am

Good to know. TY.

- Michael

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

by MMFrLife » Tue May 03, 2022 12:44 am

Asheville wrote: Mon May 02, 2022 6:57 pm I believe that that preset #207 was supposed to extract part of the folder name. That's not what I wanted
The enhanced version of the addon does what you want under Path Manipulations menu, with your choice of a 'left-specified' folder level preset or a 'right-specified' folder level preset (see my signature for site info)

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

by Asheville » Mon May 02, 2022 6:57 pm

Yes, I am replying to myself.

I don't understand this language, but nonetheless, I went to a webpage that showed a script for capturing the last folder of a path. I screwed around with the code and made this work - at least, it's doing what I wanted to do. I wanted to simply capture the name of the last folder so I could place it in a tag.

Here it is: RegExp(oSongData.Path, "[^\\]+(?=\\[^\\]+\\?$)", 0)

I believe that that preset #207 was supposed to extract part of the folder name. That's not what I wanted and that's not what my script does. Select "VBScript expression" in Regexp when you use this.

This is what it does:

C:\Music\Artist\AlbumName\song.mp3 ==> AlbumName may be used for any of many tags.

- Michael

Regexp 4.3 - preset #207 not working for me

by Asheville » Mon May 02, 2022 4:05 pm

Until there is a version of Regexp for MM5, I am using it with MM4. Preset #207 is the only one that I found that will capture the name of the last folder. It isn't working for me.

I tried to understand the 'expression' language so I could figure out what went wrong, but I don't get it.

Can anyone tell me perhaps what I need to change?

RegExp(RegExpEx(oSongData.Path, "\\([^\\]+)\\([^\\]+)\.([^\.\\]+)$", 0, 0), "^([^-]*)(?=\s-\s.*)", 0)

TY,
Michael

Top