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

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

Re: Preset Add Track number to the begin of Title

Post by GuidoR13 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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 »

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: 2894
Joined: Fri Oct 26, 2012 9:04 pm
Location: MM Forum

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

Post by MMFrLife »

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 lic. 2012) "Trying to imagine life without music gives me a headache"
Top 2 scripts: RegExp Find & Replace (e.v.) and Magic Nodes (e.v.) ZvezdanD's scripts site
Please take a moment to read the bottom of the linked page to support the one and only - ZvezdanD! (the "originator" since 2006).
MMW 4.1.31.1919; 5.0.4.2690 || back it up...frequently!
|| software for power users: "Q-Dir" (free alt. to explorer) and file/folder renamer: "ReNamer" (den4b)
"The absurd is the essential concept and the first truth"
😜
ZvezdanD
Posts: 3257
Joined: Thu Jun 08, 2006 7:40 pm

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

Post by ZvezdanD »

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.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
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 »

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

Mac.
MMFrLife
Posts: 2894
Joined: Fri Oct 26, 2012 9:04 pm
Location: MM Forum

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

Post by MMFrLife »

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 lic. 2012) "Trying to imagine life without music gives me a headache"
Top 2 scripts: RegExp Find & Replace (e.v.) and Magic Nodes (e.v.) ZvezdanD's scripts site
Please take a moment to read the bottom of the linked page to support the one and only - ZvezdanD! (the "originator" since 2006).
MMW 4.1.31.1919; 5.0.4.2690 || back it up...frequently!
|| software for power users: "Q-Dir" (free alt. to explorer) and file/folder renamer: "ReNamer" (den4b)
"The absurd is the essential concept and the first truth"
😜
jeremyryan
Posts: 8
Joined: Wed Oct 29, 2014 3:29 pm

Can This Be Done? RegExp Find & Replace 4.4.6

Post by jeremyryan »

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