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 Jul 22, 2017 4:04 pm

Wunderbar! :D
Works great.

Although, it requires a 4th preset to clean temp field.

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

Post by ZvezdanD » Sat Jul 22, 2017 12:33 pm

MMFrLife wrote:I want to "move" 2017 from the "end" of folder level 2 to the
"beginning" of folder level 2.

Using batch and some temporary field, e.g. Custom1:
- Assign left(or right)-specified folder level of Path to <Into Field>
- Move specified number of words from the end to the begin of <Into Field>
- Assign <From Field> to left(or right)-specified folder level of Path

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

Post by MMFrLife » Sat Jul 22, 2017 11:31 am

Next question:

If my path is,
"Z:\FL1\FL2 2017\FL3\01 Killer Song, Dude.flac

I want to "move" 2017 from the "end" of folder level 2 to the
"beginning" of folder level 2.

note: there is no separator involved and the date string varies across
several different albums.

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

Post by MMFrLife » Sat Jul 22, 2017 11:30 am

ZvezdanD wrote:What is "the default" Assign?

"Assign" as default - It's the case regardless of any issue. If you just use the preset as is, and never make any changes, it will
execute "assign".

The issue I thought it was having - The default state doesn't need to be changed to get both options.

Unless you think that is incorrect terminology. I was actually going to suggest that in the wording of the preset. At the end of the name could be
something like ".................. (default is "Assign")". Although, this is because I was originally using it from Preset Settings Dialog (as I do first with any
presets), not menu or toolbar button tuner. But whatever you think.

___________________________________________________________________________________________________________

Regarding its correct operation, it appears to be working as it's supposed to.

It "seemed" there was some way or combination that I did to result in an appending after an assign, while still in assign state.
But I can't for the life of me figure out what I actually did. I was sick and kind of out of it when that occured.
I distinctly remember, at least twice, opening the presets dialog with that "Copy" preset loaded and it showing "append" change
results/execution to a field with something already in it (without changing it to any append state). I can't reproduce "exactly" what
occured. I'm sure I must have been off on some detail, though. If I come across a similar case/remember what happened, I'll report back with
an exact, step-by-step example.

Thanks for the patience (see next question below)

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

Post by ZvezdanD » Wed Jul 19, 2017 10:01 am

MMFrLife wrote:If the default "Assign" already does both assign and append, what would I need the option to change to append for?

What is "the default" Assign? How the Assign option does append? This is why I needed your examples. If you don't want to do that, here are my examples:
Source field is "Blah blah (even more blah)", Destination field is "whatever", Opening string is "(", Closing string is ")", Separator is " - ":
1. Assign -> destination field will be "even more blah";
2. Append -> destination field will be "whatever - even more blah".

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

Post by MMFrLife » Wed Jul 19, 2017 8:22 am

To add, if you need me to literally wite out an example of what I'm talking about, let me know.
Actually, let me play around with it some more to see if I can come up with exactly how I did it, originally.

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

Post by MMFrLife » Wed Jul 19, 2017 7:45 am

As I was trying to say,
If the default "Assign" already does both assign and append, what would I need the option to change to append for?

I'm not sure how to make it any simpler than the test instructions (to clarify, the second execution is on the same field but a different track or album, it
may not make a difference if it's the same track/album; just stating the way I did it). I guess I can just continue to use it the way it is.

Unless you are saying that it is supposed to do that, initially. And I'm supposed to change it some way to get it to do something differently?
If so, I don't know how. Maybe I need to read all that, not to get the general idea, but to find the one little detail that keys me to how to change it.

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

Post by ZvezdanD » Wed Jul 19, 2017 7:20 am

MMFrLife wrote:I believe there may be a bug.

As I said, and as it is stated in the What is new section:
" * Removed: many redundant presets to allow faster work, but many presets now have doubled function using the new groups with radio buttons; e.g. almost all "Copy..." presets could work as old "Assign..." or "Append..." presets;"

So, if you choose Append option, you will append the part of source field to the destination field. However, if you choose Assign option, you will overwrite the destination field with the same part of the source field.

If you choose Append option, you could specify Separator which will be inserted between the old content of the destination field and the appended part from the source field, but only if both of them are non-empty. This is intended behavior. If you choose Assign option, you could choose "Copy entire field if it doesn't contain specified strings" option which is self-explanatory, I suppose. Is this the answer to your question?

By the way, there is the very detailed Description field for every preset giving examples with preset's arguments. Also, you could choose the Tune option from the Preset Settings dialog box to get the same adjustment dialog without starting execution of the preset from the menu/tooolbar. I am pretty sure that you know all that, but just to mention.

Now, could you tell me exactly when there is a bug? Some examples, please?

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

Post by MMFrLife » Wed Jul 19, 2017 6:25 am

Ah! I've been using the "copy" one from the preset settings dialog only.
That kept me from seeing the radio buttons. I usually use presets a little from that dialog first
before committing to using from the toolbar menu or a tool bar button.

I just glanced over the "remove" one before, but after seeing it closely now, it appears to be the one
to pair with.

Just to clarify, the "copy" preset uses "open/close" strings and no separator when destination
field is empty? It uses "open/close" strings and separator when destination field is not empty?

Anyway, now that I understand about the choice, I believe there may be a bug.
If a field has nothing in it and you execute the preset as default, it copies/assigns to the field.
But if you execute as default with something already in the field, it apppends the new string.
Doesn't sound like the typical bug, as it sounds great on the surface. But
it's taking away the option to overwrite if somethig is already in the field, no?

To test, do two consecutive executions of the preset to the same field without making any changes.
Or, did you already test before posting?

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

Post by ZvezdanD » Mon Jul 17, 2017 1:46 am

MMFrLife wrote:I noticed that it doesn't copy "over" what's in the field it's copying to. It appends it
to the end of that field (which is what I want), but the wording of the preset name doesn't
mention that. Is that behavior expected and is it necessary to be mentioned in the name, no?

Like many other "Copy" presets, that preset replaces two old ones: "Assign ..." and "Append ...". You could choose the behavior, and hence the result of preset, using two radio buttons: "Assign to the field" and "Append to the end of destination field". If you have any suggestion about wording, please let me know.

MMFrLife wrote:something like "Move rightmost part of <From Field> between specified strings to <Into Field>...".
...
I can't find anything else that could be batched
with the "Copy..." version (no "Remove..." or "Keep..." type presets will work, as it is a group of albums with
a varying number of strings, words, characters).

I don't understand. Why you cannot use "Remove rightmost part of <Into Field> between (and including) specified strings" batched after the mentioned "Copy" preset?

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

Post by MMFrLife » Sun Jul 16, 2017 6:48 pm

I've been using this preset for some editing,
"Copy rightmost part of <From Field> between specified strings to <Into Field>..."

It works well, but just a quick side note before my main question related to it -
I noticed that it doesn't copy "over" what's in the field it's copying to. It appends it
to the end of that field (which is what I want), but the wording of the preset name doesn't
mention that. Is that behavior expected and is it necessary to be mentioned in the name, no?

Even so, it works well, but here is what I'm really looking for,
something like "Move rightmost part of <From Field> between specified strings to <Into Field>..."
.
Same principle, just "move" instead of "copy" (again, to the "end of" new field). The problem
with the copy version is it leaves behind what I'm copying when I would like it to be removed from
the original field.

I would prefer not having to batch, but even if I did, I can't find anything else that could be batched
with the "Copy..." version (no "Remove..." or "Keep..." type presets will work, as it is a group of albums with
a varying number of strings, words, characters).

I'm sure I'm just missing something. I've probably already stared right at it.
Help me Obi-Wan!

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

Post by MMFrLife » Fri Jul 14, 2017 12:27 pm

Good to know :)

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

Post by ZvezdanD » Fri Jul 14, 2017 10:21 am

MMFrLife wrote:I take it that when you write "RegExp 1", it means "RegExp (F):"?

Generally, yes. It is RegExp 1 in the freely available version, but it is later renamed.

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

Post by MMFrLife » Fri Jul 14, 2017 10:12 am

Thanks!

I take it that when you write "RegExp 1", it means "RegExp (F):"?

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

Post by ZvezdanD » Fri Jul 14, 2017 8:53 am

Preset: Show files that do not have specified string at the end of <Into Field>...
Find what: ^(?!.*<String Caption="Ending string" Value="Live">$).*

Preset: Show files that have specified string at the end of <Into Field>...
Find what: (?=<String Caption="Ending string" Value="Live">$).*

Preset: Show files that do not have specified string at the begin of <Into Field>...
Find what: ^(?!<String Caption="Starting string" Value="The">).*

Preset: Show files that have specified string at the begin of <Into Field>...
Find what: (?=^<String Caption="Starting string" Value="The">).*

RegExp (F): checked
Replace with: $&
Action: Keep files with matched tags

Top