by Luuk » Sat Feb 05, 2022 7:14 pm
First Im apologize for the bad descriptions, because its not really swapping the "1st and last-word" before [text].
Its just moving the "last-word" to the front, and keeping everything else in order, like KrystinSeo does ask for.
For Q1, the RegEx(1) can use a "Match" and "Replace" like...
^(?i)(([a-z]+? ){1,2})([a-z]+? )(\[[^[]+\])$
\3\1\4
This to move LastWord if there is 1-or-2 words before "LastWord [any-text]" and any-text does not inlude "[".
Apple Seo [ABC] =============> Seo Apple [ABC]
Apple Mango Seo [ABC] =======> Seo Apple Mango [ABC]
Apple Mango CCC [ddd eee] ===> CCC Apple Mango [ddd eee]
aaa bbb ccc ddd [ABC] =======> (no change, because 3-words before LastWord is too many)
If changing {1,2} ===> {1,5} this moves LastWord if there is 1-thru-5 words before "LastWord [any-text]" like...
Apple Seo [ABC] =============> Seo Apple [ABC]
Apple Mango Seo [ABC] =======> Seo Apple Mango [ABC]
Apple Mango CCC [ddd eee] ===> CCC Apple Mango [ddd eee]
aaa bbb ccc ddd [ABC] ========> ddd aaa bbb ccc [ABC]
aa bb cc dd ee ff [gg hh] ======> ff aa bb cc dd ee [gg hh]
a b c d e f g h i [jj kk] ========> (no change, because 8-words before LastWord is too many)
For Q2, its unfortunate but I cannot understand this description without examples for which names to present or to filter?
To only present files with [2-or-more words] at the very end, the Filters(12) could use a "Mask" like \[.+ .+\]\.[^.]+$
Then you put a checkmark underneath for "RegEx", so only those names will be presented inside of the file-listing.