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 » Thu Aug 18, 2016 8:35 am

Oh yes, I see it now, glanced over that. Good catch Z!
Although, jeremyryan, you may want to consider replacing CONTENTWARN with [Warning] at the the end of the filename as well.
It does look much nicer. Just my opinion :wink:

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

Post by ZvezdanD » Thu Aug 18, 2016 8:00 am

If I understand correctly, jeremyryan wants to find one string in one field and to add another string to the another field in all matched files, so it is no use for the "Replace specified string with another one" preset.

Firstly, you should find files whose filenames contain CONTENTWARN. I don't know if the built-in Search option allows that, but it could be done with RegExp F&R or even better with Magic Nodes.

Secondly, you should select all matched files and choose the "Add specified string to the end of <Into Field> separated with space if not empty..." preset in RegExp F&R, select Title as destination field and specify [Warning].

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

Post by MMFrLife » Wed Aug 17, 2016 8:16 pm

Have you already familiarized yourself with the basics of the script? If not, I suggest you do that first.

If so, you can use Replace specified string with another one in <Into Field>... preset to
replace CONTENTWARN with [Warning].

I can't remember if the standard version has the menu organized into groups. If so, it should be under Basic Manipulations.

Can This Be Done? RegExp Find & Replace 4.4.6

Post by jeremyryan » Wed Aug 17, 2016 6:20 pm

Hello. I'm wondering if the following can be done with MediaMonkey_4.1.12.1798 & RegExp Find & Replace 4.4.6.

I would like to add [WARNING] to the end of all Titles when the Filenames contain CONTENTWARN.

Is this possible? If so, how? Please be gentle... I'm a DJ, not a computer programmer. Thanks in advance for your help.

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

Post by MMFrLife » Mon Jun 27, 2016 11:30 am

From here
nonob wrote:I have already this extension but i don't understand how i could use it to auto rename my files names with tags like bitrate, resolution or fps. Is it really possibel to do that ?

Well, it's not technically automatic, as I suspect neither is the Advanced Renamer approach (or have you written a "one-time" mask to detect the field you desire?).
It's just a batch way of doing it but you have to do each first string manually the first time.

For example, if you are using "resolution" > enable resolution column in MM > sort on that colum to get all the like ones together > multi-select one group
of like resolution > open RFR editor > use something like, "Assign specified string to <Into Field>..." > choose the field you want > input the string
as the res. number for that first batch you are working on > repeat with other res. groups.

It may not do what you're asking and I haven't done this myself, but it's just a thought.

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

Post by macmcd » Fri Jun 17, 2016 2:13 am

Brilliant. I now have it working exactly as I need. Thanks to one and all.

Mac.

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

Post by ZvezdanD » Thu Jun 16, 2016 11:35 pm

macmcd wrote:I want to be able to change the destination field after selecting the preset from the 'Spelling and case fixes' sub menu rather than having to go through the 'Preset Settings...'.

If you want to get the destination field displayed in the adjustment dialog box after starting the preset using menu/hotkey/toolbar, you should have the "<Into Field>" string stated in the name of preset.

Similarly, if you want to get the source filed displayed and if it is applicable to the preset, you should have the "<From Field>" string stated in the name of preset.

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

Post by MMFrLife » Thu Jun 16, 2016 7:33 pm

You have to create another preset to the same menu with same setting but new destination field. Just use the original new preset to create the next one.
When I have untunable field changed presets (you can only tune numbers and strings within a field, not the field itself), I begin the preset name with the field, like so

Album - Capitalize (ASCII, Latin-1, Latin-2 & Cyrillic)...'
Title - Capitalize (ASCII, Latin-1, Latin-2 & Cyrillic)...'

This way I can quickly distinguish from the menu which to use in which situation.

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

Post by macmcd » Thu Jun 16, 2016 5:22 pm

So I've now created a new preset that does what I want, however I now wish to select it from the menu directly and specify which field it should be applied to. At the moment it is applied to original field saved with the preset e.g. 'Album' but I want to be able to change the destination field after selecting the preset from the 'Spelling and case fixes' sub menu rather than having to go through the 'Preset Settings...'. In other words to have the same dialogue box pop up just as preset 235 'Capitalize <Into Field> (ASCII, Latin-1, Latin-2 & Cyrillic)...' does, any ideas?

Thanks.

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

Post by macmcd » Thu Jun 16, 2016 4:57 pm

UCase("$1") & "$2"

Marvellous. That hits the spot.

Thank you very much.

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

Post by Guest » Thu Jun 16, 2016 4:36 am

To keep it simple, modify the 'Replace with' field of preset 235 to:

UCase("$1") & "$2"

Ghost

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

Post by Guest » Thu Jun 16, 2016 4:20 am

Scratch that, it's too early where I am. I'll work on it.

Ghost in the machine

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

Post by Guest » Thu Jun 16, 2016 4:13 am

In that case, hijack preset 241 instead. Just change the Into: field (in the Preset Settings) from Lyrics to Title and it'll do what you want.

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

Post by macmcd » Thu Jun 16, 2016 3:16 am

Unfortunately, that's not what I am after as it converts the first letter of each word to upper case and subsequent letters to lower case i.e. 'Guitar Heroes at the BBC' becomes 'Guitar Heroes At The Bbc'. I am trying to change just the first letter to upper case and leave the rest alone resulting in 'Guitar Heroes At The BBC'. I tried modifying the 'Replace with' field of preset 235 from 'UCase("$1") & LCase("$2")' to 'UCase("$1")' but that just results in 'G H A T B'.

Thanks anyway.

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

Post by Guest » Wed Jun 15, 2016 12:27 pm

Preset 235

Top