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

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

declan
Posts: 85
Joined: Wed Sep 20, 2006 3:55 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by declan »

Where do magic nodes come into it? I'm not experiencing a problem with Magic Nodes, just RegExp Find & Replace. Wherever I've used the term mask I've meant preset (what's the difference?).
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by ZvezdanD »

declan wrote:Where do magic nodes come into it?
I really don't have any idea. Somehow your Magic Nodes masks are "mixed" with your RegExp presets since I could see a MN mask in the Preset dropdown from your screenshot.
declan wrote:Wherever I've used the term mask I've meant preset (what's the difference?).
Well, I inherited a term "mask" from Pablo's version of the Magic Nodes script and I suppose he called it like that because they are looking similar to MediaMonkey masks which you could see in several places (e.g. Auto-organize). RegExp presets are totally different thing which has nothing in common with MM or MN masks, and they are stored in the .ini file in a different way.
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
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by ZvezdanD »

Sorry, forget my last posts. I totally forgot that I made one RegExp preset that looks like MN mask and which could be seen in your screenshot.

Just try to uninstall RegExp with removed settings.
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
declan
Posts: 85
Joined: Wed Sep 20, 2006 3:55 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by declan »

That's sort of worked, the presets that are bundled with the script are find, but if I save one I've made myself it jumbles up into one line.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by ZvezdanD »

declan wrote:if I save one I've made myself it jumbles up into one line.
Could you post a RegExpPresets section of MediaMonkey.ini file and your settings of this preset?
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
declan
Posts: 85
Joined: Wed Sep 20, 2006 3:55 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by declan »

Like this?

Code: Select all

Preset48="""Remove diacritical marks from the Title (aeiou)", "áâăä -> a, éęëě -> e ...", "", "([\u00E0-\u00E5\u0101-\u0105\u01CE\u01FB])|([\u00E8-\u00EB\u0113-\u011B])|([\u00EC-\u00EF\u0129-\u012F\u0131\u01D0])|([\u00F2-\u00F6\u00F8\u014D-\u0151\u01A1\u01D2\u01FF])|([\u00F9-\u00FC\u0169-\u0173\u01B0\u01D4-\u01DC])|([\u00E6\u01FD])|(\u0153)", "Title", "True", "False", "MapArray(Array(""$1"", ""a"", ""$2"", ""e"", ""$3"", ""i"", ""$4"", ""o"", ""$5"", ""u"", ""$6"", ""ae"", ""$7"", ""oe""))", "Title", "False", "True", "False"""
Preset49="""Remove diacritical marks from the Title (cdghjklnrstywz)", "çćĉċč -> c, śŝşš -> s ...", "", "([\u00E7\u0107-\u010D])|([\u00F0\u010F])|(\u0111)|([\u011D-\u0123])|([\u0125\u0127])|(\u0135)|([\u0137\u0138])|([\u013A-\u0142])|([\u00F1\u0144-\u014B])|([\u0155-\u0159])|([\u015B-\u0161])|([\u0163-\u0167])|([\u00FD\u00FF\u0177])|(\u0175)|([\u017A-\u017E])", "Title", "True", "False", "MapArray(Array(""$1"", ""c"", ""$2"", ""d"", ""$3"", ""dj"", ""$4"",""g"", ""$5"", ""h"", ""$6"", ""j"", ""$7"", ""k"", ""$8"", ""l"", ""$9"", ""n"", ""$10"",""r"", ""$11"", ""s"", ""$12"", ""t"", ""$13"", ""y"", ""$14"", ""w"", ""$15"", ""z""))", "Title", "False", "True", "False"""
Preset50="""Clear the Comment field", """"" """"", "", "^.*", "Composer", "True", "False", "", "Title", "False", "False", "False"
Preset51="""Clear the Tempo field", """"""" """"""", "", "^.*", "Tempo", "True", "False", "", "Title", "False", "False", "False"
Mine would be numbers 50 and 51
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by ZvezdanD »

I just installed 3.1.0.1202 and there is indeed a problem with presets which didn't exist with 3.1.0.1196. They are screwed reading/writing of keys from .ini file :(
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
SumDum YunGuy
Posts: 5
Joined: Sun Aug 10, 2008 11:25 am

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by SumDum YunGuy »

I too, am experiencing this same problem[the presets jumbled up & not working]
I have 3.1.0.1204 installed
My 3.0.6 was working fine the last time I used RegExp, so I'm assuming that this has something to do with the difference in the way 3.1 handles the .db or .ini file
Regardless, this is an absolute must have for any MediaMonkey user, so I would like to know if anyone has any suggestions as how to remedy this problem
Also, the regexp's don't even work if I type them in manually, so I don't think it's the script that is at fault, but MediaMonkey itself
Any suggestions on modifications to the script that might make 3.1 recognize RegExp's functioning would be much appreciated
I don't mind doing my part it the testing, but I really don't know where to begin
I'm not looking to rewrite the script, just update it for the new beta
A top 10[in my opinion] script for the G.O.A.T. Jukebox[I'm chiseling it in stone right now] not functioning properly, it is something that must be addressed immediately
Now that I think of it RegExp should be implemented in the final release of the next "Monkey"
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by ZvezdanD »

Folks, this is obviously a problem with the new beta versions of MM since 3.1.0.1198. I already posted a report about this in the Beta forum, but without any response. Well, this is not surprising to me - MM developers don't answer to my posts even when I sent them directly through e-mail and to be a honest I have less and less will to continue a support for MM scripts because of their ignorant attitude. If they don't want to help us, scripters in development why should I help them with my scripts.

Anyway, the next major version of this script which will have changed format of presets stored in .ini file is currently in development and I will post it as soon as possible when I finish with it. In meantime, if you don't want to wait for it, you could modify script by yourself to enable its work with newer versions of MM. You should replace GetIniPreset function (from line 534) with the next code:

Code: Select all

Function GetIniPreset(lKey)
    GetIniPreset = SDB.IniFile.StringValue("RegExpPresets", "Preset" & lKey)
    If (Left(GetIniPreset, 1) <> Chr(34) Or Right(GetIniPreset, 1) <> Chr(34)) _
            And Len(GetIniPreset) > 0 And CurrentVersion < 302 Then

        ' Argh!!! They should tell us when they change such thing (3.1.0.1198)!
        ' Also, we need SDB.VersionBuild property - VersionHi, Lo and Release 
        ' are not enough.
        GetIniPreset = Chr(34) & GetIniPreset & Chr(34)
    End If
End Function
TekGamer
Posts: 118
Joined: Sun Jul 22, 2007 5:33 am

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by TekGamer »

Can anyone else with a Regular Expression or VBScript Expression to:

replace ( with [
replace ) with ]

in the Title of a track?

Thanks in Advance!
TekGamer
xtaticace
Posts: 40
Joined: Fri Sep 12, 2008 9:04 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by xtaticace »

You really don't need an expression for that. Why don't you just search for '(' and replace with '[' using the boxes provided.
It's simple and doesn't take time even if you do it often.
declan
Posts: 85
Joined: Wed Sep 20, 2006 3:55 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by declan »

ZvezdanD - That amendment has worked, thanks. I've kept an eye on your thread on this matter in beta section of the forum and it was disappointing that there wasn't a note to say - yes we are looking at it, or no we can't fix this. I think it is a little shortsighted because they need to keep people like you on-side because it is the flexibility of scripting that lifts MM above it's competitors. Without Magic Nodes, RegExp Find & Replace and one or two other scripts I'd definitely be looking at other media players. So advances in MM have to take the scripts along with them, and to do that they need to support folks like you.
jiri
Posts: 5430
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by jiri »

We certainly try to fix issues whenever they are reported. In case it doesn't happen, it's only because we weren't able to do so yet or because the issue got somehow lost (which will probably happen even less than before - now that there's even better integration between forum and bug reporting).

Jiri
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by nynaevelan »

Hi All:

I would like to be able to take the album name and move it to the custom3 field and if info already exists there to append the album name to the end of the field with a ';' as a separator. Is this possible with Regexp or do I need to look for another script to do this?

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: RegExp Find & Replace 2.2.2 - with 50 presets [MM2+3]

Post by ZvezdanD »

nynaevelan wrote:I would like to be able to take the album name and move it to the custom3 field and if info already exists there to append the album name to the end of the field with a ';' as a separator.
http://www.mediamonkey.com/forum/viewto ... lit=regexp

Find what:

Code: Select all

^.*
Into: Custom 3
Regular expression 1: checked
Replace with:

Code: Select all

IIf(Len("$&") > 0, "$&;", "") & oSongData.AlbumName
VBScript expression: checked
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
Post Reply