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

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"

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.

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

Re: Preset Add Track number to the begin of Title

Post by ZvezdanD » Wed May 25, 2016 10:37 am

GuidoR13 wrote:I have a (new?) problem with replacing when a string contains a questionmark "?", e.g. with "Add Track number to the begin of Title": The title "Bist du in Ordnung?" leads to an expression error in the unchanged preset.

That should not happen. Do you get the same thing after restart of the program? Could you install my Event Logger add-on which could show additional information about the error? If not, could you upload your database packed with Zip to some file sharing service like Dropbox, so I could try to reproduce the problem?

Re: Preset Add Track number to the begin of Title

Post by MMFrLife » Mon May 23, 2016 5:42 pm

GuidoR13 wrote:I have a (new?) problem with replacing when a string contains a questionmark "?", e.g. with "Add Track number to the begin of Title": The title "Bist du in Ordnung?" leads to an expression error in the unchanged preset.


Works fine for me.
What version (Standard or Donate and #)?

Top