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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

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

Post by ZvezdanD » Mon Sep 02, 2019 10:38 am

tm806891 wrote:
Sat Aug 03, 2019 5:57 am
I have upgraded my computer from Windows 7 to Windows 10. Now the RegExp Find & Replace app takes almost a minute (or more) just to load. Does anyone have advice on what to do about this?
This has been already mentioned in this thread and in the Windows Defender Issue section of the add-on's web page.
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.1 / 5.4.1  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.8 / 4.0.1  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.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2

djmt99
Posts: 151
Joined: Sat Jan 31, 2009 2:36 pm
Location: Worcester, MA

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

Post by djmt99 » Wed Oct 09, 2019 11:55 am

2 quick questions...

Would this script be able to sort strings within the a field? For instance, I have certain tags that I've added to them for various reasons. (The amount of tags exceed amount of custom fields, so that is not an option) Since I've added these tags at various times, I'd like to go through and sort them into alphabetical order.

Also, would this script be able to add a new line for each tag within the comment field?

Thanks!
Disc Jockey (DJ & VJ) ; AV & Lighting Tech ; Music Lover of all types
MediaMonkey Gold - Proud Lifetime License holder, Since Aug 2008

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

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

Post by ZvezdanD » Wed Oct 09, 2019 3:24 pm

djmt99 wrote:
Wed Oct 09, 2019 11:55 am
Would this script be able to sort strings within the a field?
I would not say that it is impossible, but you will need to write a very complex VBScript.
djmt99 wrote:
Wed Oct 09, 2019 11:55 am
Also, would this script be able to add a new line for each tag within the comment field?
That would be more easily, but it depends of that how you have separated tags. For example, if you have the "; " as a tag separator, you could try to replace "; " (without quotes) with "; " & vbCrLf. VBScript expression should be turned on.
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.1 / 5.4.1  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.8 / 4.0.1  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.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2

lomah
Posts: 9
Joined: Thu Jul 23, 2015 4:22 am

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

Post by lomah » Sat Oct 12, 2019 2:32 am

Hi,
I have been using this excellent script for several years now. Today, I installed F-Secure SAFE suite of security apps, including "App and file control". This app has blocked the file RegExpReplace.vbs with a description:
Worm:W32/Njw0rm is a detection for maliciously modified shortcut (.LNK) files that are designed to trick users into unwittingly launching the NjW0rm file.

I think this may be a false positive, as no other AV programs have detected or blocked it. Can I just have some assurance that it's absolutely safe?

Thanks

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

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

Post by ZvezdanD » Sat Oct 12, 2019 10:34 am

lomah wrote:
Sat Oct 12, 2019 2:32 am
Can I just have some assurance that it's absolutely safe?
I don't know what kind of assurance you expect from me. I am here for more than 10 years, with more than 3000 posts, and almost 20 add-ons. For all those years nobody complained about the safety of my add-ons, excluding those reports about F-Secure that I have mentioned in the Notice section of the add-on's web page.

Besides, my add-ons could be reviewed for malicious code by anyone who knows VBScript.
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.1 / 5.4.1  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.8 / 4.0.1  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.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2

lomah
Posts: 9
Joined: Thu Jul 23, 2015 4:22 am

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

Post by lomah » Mon Oct 14, 2019 6:11 am

ZvezdanD wrote:
Sat Oct 12, 2019 10:34 am
lomah wrote:
Sat Oct 12, 2019 2:32 am
Can I just have some assurance that it's absolutely safe?
I don't know what kind of assurance you expect from me. I am here for more than 10 years, with more than 3000 posts, and almost 20 add-ons. For all those years nobody complained about the safety of my add-ons, excluding those reports about F-Secure that I have mentioned in the Notice section of the add-on's web page.

Besides, my add-ons could be reviewed for malicious code by anyone who knows VBScript.
Hi,
My post was not intended to offend you, as the author of the add-on, so I apologise if it did. As I said in my original post I think the add-on is excellent. I was just wondering if anyone else was using your add-on along with F-Secure and had noticed the same file blocking. That's all. I will whitelist your add-on in F-Secure. Have a good day.

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

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

Post by ZvezdanD » Mon Oct 14, 2019 6:41 am

lomah wrote:
Mon Oct 14, 2019 6:11 am
I was just wondering if anyone else was using your add-on along with F-Secure and had noticed the same file blocking.
It's all right, I am not offended, although I don't like if someone is suspicious about my behavior. I am the one who don't like malicious software either and I think the world would be much better place without it. I don't like having installed firewall and anti-virus software who slows down my computer and takes 1GB on its hard disk just to be safe of those rotten apples.

Yes, there was reports about F-Secure in this thread, just use the search tool of the forum and you will find them.
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.1 / 5.4.1  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.8 / 4.0.1  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.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2

Polystyrene
Posts: 2
Joined: Sat Nov 02, 2019 2:24 pm

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

Post by Polystyrene » Sat Nov 02, 2019 2:33 pm

This add-on is very powerful and I use it quite often to move information from one field to an other (like feat. artist).
I would have been great to add the capability to move information in one step, with presets I have to use copy first and remove in a second step.

Polystyrene
Posts: 2
Joined: Sat Nov 02, 2019 2:24 pm

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

Post by Polystyrene » Sat Nov 02, 2019 5:41 pm

Polystyrene wrote:
Sat Nov 02, 2019 2:33 pm
This add-on is very powerful and I use it quite often to move information from one field to an other (like feat. artist).
I would have been great to add the capability to move information in one step, with presets I have to use copy first and remove in a second step.
I have just installed the new version and I realize that it's a already feature of the registered version... great job !

jz1276
Posts: 15
Joined: Sun Apr 25, 2010 9:54 pm

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

Post by jz1276 » Sun Nov 17, 2019 1:12 pm

Recently formatted my computer & can't remember how I created a custom preset for this. All I'm looking to do is to add the artist name before the album title. Any help's appreciated!

jz1276
Posts: 15
Joined: Sun Apr 25, 2010 9:54 pm

Batch add artist name before the album title with RegExpReplace

Post by jz1276 » Fri Dec 20, 2019 4:56 am

Hello. Recently wiped out my PC & can't remember how I had MM set up to to batch add artist name before the album title (The Beatles: Abbey Road"). I have the "RegExpReplace-4.4.4.mmip" file, but cannot remember what to do. Please help, thanks!

jetkins
Posts: 3
Joined: Sun May 17, 2020 9:08 pm

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

Post by jetkins » Mon May 18, 2020 7:20 pm

Hi, folks. New MM user here, and I was referred to this addon when I asked how I could reset the Last Played date on a couple of hundred of my files which appear to have invalid data in that field. I've downloaded and installed, but when I try to run the "Reset Last Played field" on one of these files, I get an "Expression Error!" failure. I also get the same if I run the "Clear <Into Field>..." preset and select Last Played as the target.

Unfortunately the error message doesn't provide any further information. Is there a log or diagnostic option that I can set to try to get a handle on why it's barfing on these files?

Thanks!

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

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

Post by ZvezdanD » Tue May 19, 2020 1:46 pm

jetkins wrote:
Mon May 18, 2020 7:20 pm
when I try to run the "Reset Last Played field" on one of these files, I get an "Expression Error!" failure.
Please post the screenshot of the Preset Settings dialog box with selected the mentioned preset and the file that has that error.

By the way, the "Clear <Into Field>..." preset is only for textual fields.
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.1 / 5.4.1  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.8 / 4.0.1  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.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2

TLD
Posts: 37
Joined: Sat Jun 27, 2009 6:11 pm

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

Post by TLD » Tue Jul 07, 2020 7:30 pm

Hello, All,

I tried to find this answer a variety of ways - It's either not present or written in such a way as to not find it...

I've got a bunch of media files from various sources that have been moved from drive to drive over a long time... Because of the method used each time, some of the filenames have "repeating text"
The tags on these are not correct or I'd just use that data... I've yet to take time to go through and fix the tags. However, I'd like to shorten the filenames by removing the "duplicate" text.

For example:
Q:\folder\001-005 - Can't Buy Me Love - Beatles, The --01- 005)Can't Buy Me Love - The Beatles [603] [131] Track - Beatles, The [329]) Track10 - Beatles, T [683]) Track10 - Beatles, T [404]).mp3

I want that to be:
Q:\folder\001-005 - Can't Buy Me Love - Beatles, The --[603] [131] Track - Beatles, The [329]) Track10 - Beatles, T [683]) Track10 - Beatles, T [404]).mp3

Second and etc. pass would find those extra "Beatles, The" and "Beatles, T", etc.
Q:\folder\001-005 - Can't Buy Me Love - Beatles, The --[603] [131] Track - [329]) Track10 - Beatles, T [683]) Track10 - Beatles, T [404]).mp3
Q:\folder\001-005 - Can't Buy Me Love - Beatles, The --[603] [131] Track - [329]) Track10 - [683]) Track10 - [404]).mp3
Q:\folder\001-005 - Can't Buy Me Love - Beatles, The --[603] [131] Track - [329]) 10 - [683]) 10 - [404]).mp3
Q:\folder\001-005 - Can't Buy Me Love - Beatles, The --[603] [131] Track - [329]) 10 - [683]) [404]).mp3
etc. (Shorter - some filenames by a lot!)

Any idea whether RegExp Find & Replace is capable of doing this? I tried writing some regex to search/replace on a few sites, and found an expression that seemed to work right...
Search: ((q:\\)(.*?)(.{3,}))(.*?)\4(.*)
Repalce: \2\3\4\6
(Q is the drive they're on, tests on full filenames worked.)

Has anyone ever written such a search? The big problem is the text being replaced is different for each file, different length, etc. (I can get rid of the extra whitespace at any time - left in for illustration.) The above makes no difference at all - no matches.

Thank you,

-- TLD

***For others searching for this:
Regex duplicate text remove
Repeating text field
Shorten filename extra text

Post Reply