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 ZvezdanD » Sat Feb 25, 2017 1:00 pm

MMFrLife wrote:the Lowercase section
also includes unique, specific strings and I was previously unaware of "Specific" as a "separate" section

I suppose you didn't open the Tune/Adjustment dialog box for that preset, otherwise you would see it clearly separate.

I though to call it "Exact" or something like that, but decided for the "Specific" term.

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

Post by MMFrLife » Sat Feb 25, 2017 11:16 am

"Specific section"!!!

:o :o :o YAY!!!
Wow, that opens up a whole other possibility.

I always wondered why "|BlueRay|iTunes" was sittin' over there to the left.
It's intro'd with "String Caption" like the other sections, but "Specific" after it threw
me as to the fact that it is yet another adjustable section :lol: Yay! :D .

ZvezdanD wrote: :wink: I didn't want to enter into another discussion why you are wrong, but here are again some examples what could happen if you use your mod with the "-" as a word character: Afro-celt, Dark-eyed, Jean-michel, Kung-fu, Itsy-bitsy, Low-life, Non-stop, Ob-la-di, P-funk, Pan-african, Peek-a-boo, Pin-ups, Radio-activity,
Rendez-vous, Set-up, Too-rye-ay, Trans-europa, White-out, X-ray...


Ok, no biggie. But what I meant by remaining point was that I already demonstrated an awareness of the
problem of counter-instructing a repeated character in my previous 2 posts (earlier in the string, later
in the string and trying fresh, the original preset with stripped out symbols). So, sure, not a "full" understanding,
but an awareness.

I mean, the Lowercase section, although it has some strings with "?" and "\", it also has "specific",
normal looking strings like "into, for, from (which I added)". It also includes 2 character strings like,
"in" and "to". "lv" and "xb" are 2 character strings. I didn't include any symbols like "-" in my last test with the
original, unmodified preset and it still didn't work at the end. That and being unaware of a separate "specific" section
is why I was so confused.

When I mentioned giving up, I was only referring to how, now, I can't even seem to get the "Specific String"
thing to work. I didn't mean I was determined to make work what I originally, idealistically had in mind.

ZvezdanD wrote:For the third time, it is the Specific section, not Lowercase.


Yes, third time referencing, first time combining those two terms "Specific section"
It wasn't incorrect before, it just confused me the way it was worded because the Lowercase section
also includes unique, specific strings and I was previously unaware of "Specific" as a "separate" section,
and in turn, unaware of its separate purpose.

It's all good now! :D
Hopefully this will help someone else as well.

Thanks,
Your the best when it comes to the MM scripting game! :wink:

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

Post by ZvezdanD » Sat Feb 25, 2017 8:01 am

MMFrLife wrote:I appreciate you editing down your original reply to the only remaining point :wink:

;) I didn't want to enter into another discussion why you are wrong, but here are again some examples what could happen if you use your mod with the "-" as a word character: Afro-celt, Dark-eyed, Jean-michel, Kung-fu, Itsy-bitsy, Low-life, Non-stop, Ob-la-di, P-funk, Pan-african, Peek-a-boo, Pin-ups, Radio-activity, Rendez-vous, Set-up, Too-rye-ay, Trans-europa, White-out, X-ray...

MMFrLife wrote:To insert, you just create "|xb|" or "|lv|", etc. in lowercase section, right?

For the third time, it is the Specific section, not Lowercase.

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

Post by MMFrLife » Sat Feb 25, 2017 6:07 am

I appreciate you editing down your original reply to the only remaining point :wink:

So, if it is supposed to be working stripped down (original preset, no symbols), then either I'm inserting into LC string section incorrectly
or something is slightly off with my copy of the original preset.

I will try again by extracting the "RegExpReplace.ini" from the .mmip, even though the one I used
was imported from one that is in a read-only state.

To insert, you just create "|xb|" or "|lv|", etc. in lowercase section, right?

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

Post by ZvezdanD » Sat Feb 25, 2017 3:11 am

MMFrLife wrote:I actually tried that before you originally suggested it, but it didn't work.
...
If you put specific string "xb" in the LC section...

It works just fine for me - if I put lv or xb in the Specific string, those your IDs would not be capitalized, even on the end of text.

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

Post by MMFrLife » Fri Feb 24, 2017 10:27 pm

ZvezdanD wrote:you should use the Specific string for your IDs.

I actually tried that before you originally suggested it, but it didn't work.
That works to except words that don't interfere with the "first and last words are capitalized" rule.
However, the IDs are intended to go at the end, "not within" the name.

It appears that no matter what version of the preset used, it continues to adhere to that rule.
I even went back to the predefined preset and took out any symbols in the name of the album.

If you put specific string "xb" in the LC section, and "xb" within the name, you get
"What It Takes the Chess Years xb"
resulting in "What It Takes the Chess Years Xb"

If you have,
"What It Takes the Chess Years lv xb"
resulting in "What It Takes the Chess Years lv Xb"

If you have "xb" within the name,
"What It xb Takes the Chess Years"
resulting in "What It xb Takes the Chess Years"

Anyway, I'm about ready to give up and go back to the way I had it :-?.
Any hyphenated subtitle situations I'll just run all my editing
process batches and manually edit immediately after " - " for any fields it pertains to.

Thanks

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

Post by ZvezdanD » Fri Feb 24, 2017 3:31 pm

MMFrLife wrote:In "Caps with exceptions...", how do I also make articles after " - " capitalized?

You should replace "(?!^)\b" in the predefined preset with "[\-:;.,]\W*|[ \t]+". There are added ":;.," beside of "-" after which a word should be capitalized, you could also add some another characters inside the first pair of [] brackets if you want to have a word capitalized after them.

MMFrLife wrote:Or, is it impossible to except both " - the" (earlier in the string), and "-xb" (later in the string).

Yes, it is impossible. As I said before, you should use the Specific string for your IDs. Or just use some Classification field.

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

Post by MMFrLife » Fri Feb 24, 2017 12:45 pm

In "Caps with exceptions...", how do I also make articles after " - " capitalized?

ex., album name is "What it Takes - The Chess Years -xb"
If " - The" is already capped it remains so. If it is LC, it is capped.

I tried a couple things but couldn't get it to go.
Keep in mind, I'm using the modified version as discussed prior. It contains the "[ \t]" and "\w\-\[\.\" mods.

I took the "\-" out of the word character section, but it still won't work.
Or, is it impossible to except both " - the" (earlier in the string), and "-xb" (later in the string).

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

Post by MMFrLife » Thu Feb 23, 2017 1:00 am

Well, nevermind. It appears to be working now.

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

Post by MMFrLife » Wed Feb 22, 2017 8:32 pm

...also "B02-alt1" doesn't work either.

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

Post by MMFrLife » Wed Feb 22, 2017 8:23 pm

Possible bug?

If I'm using the preset "Remove specified number of words from begin of <Into Field>"
with something like,

"Alternate song"
"alternate 02 songs from the wood"
"alt02-1b"

They work.

But if the first word starts with a digit,

"02B-alt1"

It doesn't get recognized.

If that same thing is the second word, it gets recognized.
"number 02B-alt1"

My assumption is that a word is "any" string that begins and ends with a space or a single non-space character begun and ended with a space.

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

Post by MMFrLife » Wed Feb 22, 2017 5:04 pm

jcfogerty,
So, "Copy <From ..> to <Into ..>" worked when you "personally" updated it with: both F/RW fields as "^.*" ?

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

Post by jcfogerty » Wed Feb 22, 2017 3:01 pm

MMFrLife wrote:
jcfogerty wrote:No, I used "timestamp" and it did not work.

This has already been worked out. See 4 posts starting here


Thanks - that did work once the add-in was updated. Here is what worked...

Under Preset Settings...

Find What: ^.*
"Into: Timestamp", Regular expression 1 checked, Full

Replace with: ^.*
"From: Last Played", Regular expression 2 checked, Full

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

Post by MMFrLife » Sun Feb 19, 2017 9:19 pm

jcfogerty wrote:No, I used "timestamp" and it did not work.

This has already been worked out. See 4 posts starting here

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

Post by jcfogerty » Sun Feb 19, 2017 4:24 pm

MMFrLife wrote:
    Just to clarify, by "datestamp", you mean the date aspect of the "Timestamp"?
    It works fine here using - Copy <From FIeld> to <lnto Field> - "Last Played" to " "Timestamp". It alters the WinExp properties view.
    It won't work via "Date" as that field would not be able to handle the time (ex. 2:00 pm) signature of "Last Played" and also does not reflect the timestamp's date/time.


    No, I used "timestamp" and it did not work.

    Top