#1 2016-05-08 07:25

Stamimail
Member
Registered: 2016-05-08
Posts: 81

Rearrange - How to move the last word to be the first word?

no matter how many words there are.
Is there a rule for the Last object?

Example:

User Manual - 2016-05-08
My user Manual - 2016-05-08

2016-05-08 - User Manual
2016-05-08 - My user Manual

Offline

#2 2016-05-08 16:18

kunkel321
Member
From: Washington State
Registered: 2012-09-01
Posts: 38

Re: Rearrange - How to move the last word to be the first word?

I'm not a reg ex pro... But I'll bet this could be done with reg ex.  Is there always a hyphen separating the two components to be switched?
Maybe something like:
(.*) - (.*)
replace with $2 - $1
(Others can correct me)

edit:

n5WromC.png

Last edited by kunkel321 (2016-05-08 22:07)

Offline

#3 2016-05-09 08:38

Stamimail
Member
Registered: 2016-05-08
Posts: 81

Re: Rearrange - How to move the last word to be the first word?

Thank You.

I can see that you solved my problem in the examples, by replacing both sides of the " - ". That's great and enough for me (for meanwhile).

But the question in title is other question, and still requires its solution, for who looking for it...

I wish Renamer will find the way to make things more simple and easier, without expecting from all users to learn RegEx...

Last edited by Stamimail (2016-05-09 09:00)

Offline

#4 2016-05-09 09:45

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Rearrange - How to move the last word to be the first word?

You could also accomplish the same with a Rearrange rule:
1) Rearrange: Split by exact pattern of delimiters " - ", New pattern "$2 - $1" (skip extension)

Stamimail, it is impossible to design a friendly user interface to accomplish all possible options and manipulations which users may need to achieve. There are simple generalized rules such as Insert, Delete, Replace, etc - to cover the most common uses. For everything else, there are RegEx and PascalScript. Rearrange rule is an attempt to make RegEx like pattern processing more user friendly, while sacrificing some powers of RegEx.

Any concrete suggestions or recommendations are very much welcomed!

Offline

#5 2016-05-09 10:46

Stamimail
Member
Registered: 2016-05-08
Posts: 81

Re: Rearrange - How to move the last word to be the first word?

den4b wrote:

You could also accomplish the same with a Rearrange rule:
1) Rearrange: Split by exact pattern of delimiters " - ", New pattern "$2 - $1" (skip extension)

As I said, it looks like an answer to the example, rather than to the title question.

den4b wrote:

Stamimail, it is impossible to design a friendly user interface to accomplish all possible options and manipulations which users may need to achieve. There are simple generalized rules such as Insert, Delete, Replace, etc - to cover the most common uses. For everything else, there are RegEx and PascalScript. Rearrange rule is an attempt to make RegEx like pattern processing more user friendly, while sacrificing some powers of RegEx.

Any concrete suggestions or recommendations are very much welcomed!

I agree with what you said, just I think Renamer can do much better.

Offline

#6 2016-05-09 14:37

kunkel321
Member
From: Washington State
Registered: 2012-09-01
Posts: 38

Re: Rearrange - How to move the last word to be the first word?

With Rearrange > Split using > Delimiters, it might be interesting to include a radio button group for First, Last, or Nth Occurrence of Delimiter.  For Staminmail's example (I guess) it would be the 'Last' occurrence of the space character.

Offline

#7 2016-05-11 18:25

Andrew
Senior Member
Registered: 2008-05-22
Posts: 542

Re: Rearrange - How to move the last word to be the first word?

Stamimail wrote:
den4b wrote:

Any concrete suggestions or recommendations are very much welcomed!

I agree with what you said, just I think Renamer can do much better.

I agree with Denis completely - there's a limit to how many UI options can be provided before simplicity gives way to a confusing mess. In fact, few other mass renamers even provide the flexibility and power that ReNamer does by supporting RegEx and PascalScript to do what the UI can't. Still, that doesn't mean the UI cannot be improved at all. However, just saying "Renamer can do much better" without providing any concrete suggestions is pointless. One person cannot think of everything and Denis is generally very open to suggestions, so why not state exactly what it is you're looking for?

Offline

#8 2016-05-12 00:12

Stamimail
Member
Registered: 2016-05-08
Posts: 81

Re: Rearrange - How to move the last word to be the first word?

smile
I didn't want to continue here, so I ended with this, and I contacted him directly by Email.

Offline

#9 2016-05-12 05:07

Andrew
Senior Member
Registered: 2008-05-22
Posts: 542

Re: Rearrange - How to move the last word to be the first word?

Great, I hope the specific suggestions you made (whatever they are) help in improving the program for all of us. smile

Last edited by Andrew (2016-05-12 05:08)

Offline

#10 2016-05-12 21:57

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Rearrange - How to move the last word to be the first word?

Stamimail wrote:

I didn't want to continue here, so I ended with this, and I contacted him directly by Email.

Please post your suggestions on the Forum so that they can be discussed and tracked publicly.

Offline

Board footer

Powered by FluxBB