Page 28 of 100

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Sat Nov 21, 2009 6:35 pm
by Owyn
Ummm. Don't you want to do this in the Disk Burning Wizard, e.g. "Left(<Title>,29)" when you burn the CD.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Mon Nov 23, 2009 9:15 pm
by Fang
Owyn wrote:Ummm. Don't you want to do this in the Disk Burning Wizard, e.g. "Left(<Title>,29)" when you burn the CD.

Thx for the reply. New to MM and really like it but could you breakdown the Disk Burning Wizard for me. I understand the "Left(<Title>,29)" part but where would I enter this in the Disk Burning Wizard?
Thanks for your help.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Mon Nov 23, 2009 9:46 pm
by Owyn
See:
Burning a CD/DVD and
Directory & File Formats

The mask is used in "Disc Format:"

Edit: The mask e.g. should be "$Left(<Title>,29)" although that might need to 28 if the "." is included in the max 32 characters filename+extension. Typo in the first example, the "$" was missing.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Tue Nov 24, 2009 2:21 pm
by Fang
Owyn wrote:See:
Burning a CD/DVD and
Directory & File Formats

The mask is used in "Disc Format:"

Edit: The mask e.g. should be "$Left(<Title>,29)" although that might need to 28 if the "." is included in the max 32 characters filename+extension. Typo in the first example, the "$" was missing.
Thanks Owyn! It works like a charm!

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Tue Dec 29, 2009 6:17 am
by FunnyFish
Hi, I have been usiing RegExp on a regular basis for motnhs now and think it's a wonderful add-on. However, since a few days I get this error on MM start-up:

Error #457
This key is already associated with an element of this collection
File: C: \\progra~1\mediamonkey\scripts\auto\regexpreplace.vbs, line: 118, column: 4


After this one, a standard dialog window with the same text.

Completely uninstalled RexEpx, started the .mmip file again, with the same results after the installation dialog. I'm wondering what 's going wrong: any suggestions?

MM version: 3.2.0.1294
Script Version: freshly installed the latest version from the forum page (3.6.xxx I think).

http://www.mediamonkey.com/forum/postin ... =2&t=28510#

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Tue Dec 29, 2009 12:29 pm
by nynaevelan
Have you done something recently to your database, added a new script? I use it daily and I do not run into any problems.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Tue Dec 29, 2009 4:17 pm
by Owyn
Same as Nyn. I use the script almost every day without problems.

Hmmm. Bex had a similar problem with either ADD or SQL-Viewer. Exit and restart MM avoided the error, but, he was able to fix the problem in source.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Tue Dec 29, 2009 7:03 pm
by Guest
FunnyFish wrote:I'm wondering what 's going wrong: any suggestions?
I think you have one custom field named "Mood". If this is a case, you could try with another name.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Tue Dec 29, 2009 8:38 pm
by Owyn
Guest wrote:
FunnyFish wrote:I'm wondering what 's going wrong: any suggestions?
I think you have one custom field named "Mood". If this is a case, you could try with another name.
Good call. That makes a lot of sense after looking at the code.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Thu Jan 07, 2010 1:43 pm
by someone thats not the other one
Hello,

I Recently moved from Vista to Windows7. Everything works fine now, except for this message at start-up. RegExp works fine, but it's just an annoying thing.
The same messega was shown when I installed this script. I didn't get this error at the time I used Vista. Any help? Thnx:)

Image

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Fri Jan 08, 2010 3:56 am
by someone that is the one
someone thats not the other one wrote:Everything works fine now, except for this message at start-up.
I think you have switched to the localized (non-English) version of Windows and have created presets with some version of this script older than v3.4.2. Take a look at the Edit / RegExp Presets sub-menu - the first missing preset on the end of the list is problematic. Open the Edit / RegExp Export/Import dialog box and take a look at that preset, if you see "toolbar: true_in_your_language" instead of "toolbar: true" then you have only one solution: open the MediaMonkey.ini file into Notepad and within the [RegExpPresets] section replace all "true_in_your_language" with "true". There is one more easier solution, if you don't care about your own created or modified presets - you could just re-install the latest version of the script, but when you uninstall it you should choose Yes on its ask to remove settings.

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Fri Jan 08, 2010 6:26 pm
by mzd
Hello all.

FIrst, I would like to thank the author of this great plug-in - very amazing! SO useful!

I have a question / request.

Could someone please help me to create a renaming regular expression that would do the following:
I need the maximum file name and directory name to be 38 characters long. As well, if shortening the file name ends up making all of the files in that directory have the same name, then I would like the to append numbers to the end of the file name. For example, the files shown below would have the same name if shortened to 38 characters.:

Quote:
Sinatra, Frank & Tony Bennet & Sammie Davis Jr - The Best is Yet to Come.mp3
becomes
Quote:
Sinatra, Frank & Tony Bennet & Sammie.mp3
and
Quote:
Sinatra, Frank & Tony Bennet & Sammie Davis Jr - New York, New York.mp3
becomes
Quote:
Sinatra, Frank & Tony Bennet & Sammie.mp3
so they have the same name, hence I would like to add a suffix of two digit numbers, starting at 01. So the originals would become
Quote:
Sinatra, Frank & Tony Bennet & Sammie01.mp3
Quote:
Sinatra, Frank & Tony Bennet & Sammie02.mp3

As well, I need to replace any occurrence of "[<>=?:;"*+,|]" in both the directory and file name with an underscore "_".

So, it would need to modify the following directory

/home/music/The Best of the Rat Pack + more/

to

/home/music/The Best of the Rat Pack _ more/

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Sun Jan 17, 2010 3:03 am
by Guest
I love you dude! :)

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Sun Jan 17, 2010 8:46 am
by Vyper
Guest wrote:I love you dude! :)
What the? Image

Re: RegExp Find & Replace 3.6 w/ 101 presets (2009-07-02)[MM2+3]

Posted: Mon Jan 25, 2010 4:52 am
by Rojer
Thank you for that script. Hard to state how useful it will be for so many people.

As ever, my brain is in trouble with regular expressions: I tried to edit a preset (fix common typo's, dont, wont etc) and add [in' ->ing], which includes a potentially troublesome ' .

I just added
|(in')
in the source field and
"$8", "ing"
in destination

Script still works for $1 to $7 but doesn't like my $8...

is the ['] subject to an escape sequence (\') ? Not that I didn't try, but I know little: maybe \ doesn't escape at all, it seems not to. So far, $8 works for anything that has no ' in it...