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 MMFrLife » Sat May 23, 2015 8:37 pm

#234 if you want all words capitalized.
#235 if you only want major words capitalized.

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

Post by Hdhntr23 » Sat May 23, 2015 8:24 pm

I'm sure this has been asked before but I coudlnt find it in this thread... 67 pages wow!

Anyway, is there a preset to capitalize every first letter of each word in a field?

I apologize if this is an easy one.

Thanks in advance.

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

Post by MMFrLife » Sat May 23, 2015 8:19 pm

ZvezdanD wrote:I didn't say that you cannot do it, but I said that you cannot use the mentioned preset for that.

I understood you (the gist). That's what I meant by can't do it. Not that it isn't possible, just not with current presets.

ZvezdanD wrote:As I said, I need examples. I cannot write a new preset for you if I don't know what exactly you want. It is not same if some folder is on the first or second or any other level of the path

So, by an example, you'd need me to literally write out the entire path? You can't write it with a starting position signifier? [not complaining, just wondering if that's
what you're saying, specifically]

ZvezdanD wrote:But, you are right, maybe it would be faster if you just use some specialized software for that.

Yeah, in this case I'd rather just use my FileRenamer (file and folder) and save your efforts for a couple of other issues I want to try and get to after
the next few days.

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

Post by ZvezdanD » Sat May 23, 2015 5:52 pm

MMFrLife wrote::( Yeah, you hit on what I want.
So, it looks like I can't do it since "The Fifth Dimension" folder is not at the beginning of the path
and it isn't separated by ";" inside of a field.

I can use my FileRenamer for them. It's a really great one (by Sherrod). :)

I didn't say that you cannot do it, but I said that you cannot use the mentioned preset for that. As I said, I need examples. I cannot write a new preset for you if I don't know what exactly you want. It is not same if some folder is on the first or second or any other level of the path, unless if you want to move prefixes in the folder only for just that single artist. In that case you could simply use this add-on by replacing:
\The Fifth Dimension\
with:
\Fifth Dimension, The\

But, you are right, maybe it would be faster if you just use some specialized software for that.

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

Post by MMFrLife » Sat May 23, 2015 5:28 pm

:( Yeah, you hit on what I want.
So, it looks like I can't do it since "The Fifth Dimension" folder is not at the beginning of the path
and it isn't separated by ";" inside of a field.

I can use my FileRenamer for them. It's a really great one (by Sherrod). :)

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

Post by ZvezdanD » Sat May 23, 2015 10:57 am

MMFrLife wrote:How do I get it to look for a specific folder in the path?
Trying to rename "Prefix to end of <into>" (for the artist folder).

I know the proper preset to use, but folder and path do not work as is.
What am I not seeing?

You should be more specific with some examples what you have now and what you want to get. Also, there is no "Prefix to end of <into>" preset and I am not sure that I know about which you are talking. I suppose it is "Move prefixes to the end of <Into Field>...", but you cannot use that preset since it is moving prefixes from the begin of the specified field to its end.

For example, if I have artist "The Beatles" I could get "Beatles, The". However, if I have this path:
c:\My Music\Rock\The Beatles\The Beatles [White Album]\Disc1\01 - Back in the U.S.S.R..mp3
then the Folder would be:
c:\My Music\Rock\The Beatles\The Beatles [White Album]\Disc1
i.e. everything except the filename and extension (01 - Back in the U.S.S.R..mp3). In both cases the prefix is not on the begin of the string. Actually, the mentioned preset could move prefixes even if they are not on the begin of the string, but they should be preceded with the multi-item separator ";". For example: "Bob Marley; The Wailers" would be "Bob Marley; Wailers, The".

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

Post by MMFrLife » Sat May 23, 2015 8:26 am

How do I get it to look for a specific folder in the path?
Trying to rename "Prefix to end of <into>" (for the artist folder).

I know the proper preset to use, but folder and path do not work as is.
What am I not seeing?

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

Post by terrypin » Sun May 17, 2015 1:58 am

Yes, I sorted alphabetically following the tip from ZvezdanD on 9th May up-thread:
viewtopic.php?f=2&t=28510&start=975#p407701

But to do the same for the Tools > Scripts dropdown, lke you I resorted to manual shuffling after nohitter's pointer about editing Scripts.ini:
viewtopic.php?f=2&t=80768#p407398

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

Post by KyleHx » Sat May 16, 2015 4:24 pm

I've been playing a bit with this addon and came across a couple of things that are making it easier for me to use.
The .\Scripts\Auto\RegExpReplace.ini doesn't seem to be used at all, after installation.
Its contents are copied into MediaMonkey.ini (there are 2 RegExp sections in that file).
I found that I could edit the copy in MediaMonkey.ini, with a text editor, and change the order and names to make things easier to figure out.
You'll need a text editor that won't balk at long lines & extended characters.
(I use PFE32, and Notepad++ from http://notepad-plus-plus.org has been suggested as a better alternative.)
With 253 Presets, there a lot to sort through, but it seems worth the effort.

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

Post by MMFrLife » Fri May 15, 2015 5:13 pm

After you fool around with it a bit more you'll find you can use more than one, and often seemingly unrelated presets, to perform
the same or a similar function. For ex., "Remove specified number of words from the begin of <Into Field>..." can be used to achieve the same result.
Likewise, the "remove a certain number of characters... one also works provided the correct number is entered into the appropriate area in the preset. :)

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

Post by terrypin » Fri May 15, 2015 11:41 am

Well spotted, thanks! That fixed it.

Any sources you can recommend for learning how to use this tool properly please? Half a dozen worked examples would get me started. I can look up the RegEx syntax (the version I know a little about is built into my text editor, and seems significantly different to the VBS version). But some basics about the UI are still unclear to me, and I'm sure they're trivial and obvious once I've seen them used.

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

Post by Guest » Fri May 15, 2015 11:18 am

From what I can see, it looks like there might be a space before the carat ^ in the Find What field - otherwise what you have should work (nb the track number and the space(s) should be highlighted in yellow.)

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

Post by terrypin » Fri May 15, 2015 9:31 am

Could I get some help on how to remove track numbers from the beginning of titles please?

I'm finding this hard going, despite reading the opening post!

I scrolled down the list of presets and found this which seems appropriate for my objective, namely to remove the track numbers from the titles. Then I selected Title as the target ('Into Field').

https://dl.dropboxusercontent.com/u/401 ... ace-01.jpg

But what next? Clicking Replace All at this stage did nothing. Must I construct a replacement RegExp and enter it in the 'Replace with' box (which I'm surprised is empty).

Do I need to enable Regular Expression 1 and/or Regular Expression 2?

And what about those other check boxes?

Are there some worked examples anywhere that I can study please?

Should this link play video about the script? I just see a couple of adverts.
https://dl.dropboxusercontent.com/u/401 ... ace-02.jpg

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

Post by ZvezdanD » Sun May 10, 2015 6:34 am

terrypin wrote:Thanks, that fixed it.

Just curious: wouldn't that be the preferred default?

No, I tried to sort them by similarity and their purpose, e.g. all track number related presets are one after another even if their names start with different character(s).

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

Post by terrypin » Sun May 10, 2015 2:08 am

Thanks, that fixed it.

Just curious: wouldn't that be the preferred default?

Top