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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

GuidoR13
Posts: 14
Joined: Sun Mar 13, 2005 7:38 am

Re: Preset Add Track number to the begin of Title

Post by GuidoR13 » Fri May 27, 2016 4:31 pm

Oh, sorry: After exporting my presets, deinstall & reinstall this extension (with default preset) problem vanished, importing my presets worked also.

"Sturm im Wasserglas" ...

macmcd
Posts: 96
Joined: Wed Jul 09, 2008 7:22 am

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

Post by macmcd » Wed Jun 15, 2016 12:07 pm

Is there a preset hidden in plain view that I obviously can't find that would enable me to capitalize the first letter only of each word in a field leaving the others unchaged i.e. 'Guitar Heroes at the BBC' would become 'Guitar Heroes At The BBC'?

Thanks,
Mac.

GuidoR13
Posts: 14
Joined: Sun Mar 13, 2005 7:38 am

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

Post by GuidoR13 » Wed Jun 15, 2016 12:24 pm

Should be "Capitalize <into field> ..." in "Spelling and Case Fixes"

Guest

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

macmcd
Posts: 96
Joined: Wed Jul 09, 2008 7:22 am

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.

Guest

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.

Guest

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

Guest

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

macmcd
Posts: 96
Joined: Wed Jul 09, 2008 7:22 am

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.

macmcd
Posts: 96
Joined: Wed Jul 09, 2008 7:22 am

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.

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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.
Last edited by MMFrLife on Fri Jun 17, 2016 8:01 am, edited 1 time in total.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

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

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.
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 / 5.4  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.7 / 4.0  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.3 / 2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2

macmcd
Posts: 96
Joined: Wed Jul 09, 2008 7:22 am

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.

MMFrLife
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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.
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]

jeremyryan
Posts: 8
Joined: Wed Oct 29, 2014 3:29 pm

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.
MediaMonkey_4.1.12.1798
Windows 10

Post Reply