Move a word to start file name wihout know the position of word

Advanced Renamer forum
#1 : 06/04-17 18:16
Fabiano
Fabiano
Posts: 4
Hi

How can i move a word to start file name

ps. I don't know the position of word

Ex.1
586999 RED 12.70 304L ESGOTADO.jpg
to
RED 586999 12.70 304L ESGOTADO

Ex.2
345 2016025515 672513 RED 88.90 304L 001.jpg
to
RED 345 2016025515 672513 88.90 304L 001.jpg



06/04-17 18:16
#2 : 06/04-17 19:08
G. Lambany
G. Lambany
Posts: 187
Reply to #1:
Method: Replace
Text to be replaced: (^[\d\s]+)(\w+)\s?(.+)
Replace with: \2 \1\3
use regular expression: checked

It is not bullet proof, but with a list of all colors possible, it could be made so. *this one will work with any colors*, but not with other than numbers and space in front of the color.

cheers


06/04-17 19:08 - edited 06/04-17 19:10
#3 : 06/04-17 19:38
Fabiano
Fabiano
Posts: 4
Reply to #2:

Perfect!!!!!

Thanks for help!

I'm catch this, but "RED" is not a color is a abreviation of "REDONDO" i'm brazilian.

"RED" can be "SEXT" or "QUAD"

I starting understand



06/04-17 19:38 - edited 06/04-17 20:06
#4 : 06/04-17 20:08
Fabiano
Fabiano
Posts: 4
If i want it.

Ex.1
586999 RED 12.70 304L ESGOTADO.jpg
to
RED 12.70 304L 586999 ESGOTADO.jpg

Ex.2
345 2016025515 672513 RED 88.90 304L 001.jpg
to
RED 88.90 304L 345 2016025515 672513 001.jpg


06/04-17 20:08
#5 : 06/04-17 23:22
Tester123
Tester123
Posts: 92
Reply to #4:
Method: Replace
Text to be replaced: ^([\d\s]+)(\w+)\s(.+\s.+)\s(.+)$
Replace with: \2 \3 \1 \4
Use regular expression: checked


06/04-17 23:22
#6 : 07/04-17 20:05
Fabiano
Fabiano
Posts: 4
Reply to #5:

Perfect !!!!

Thanks...

And to finish....

using just one Method Replace to do it:

Ex.1
586999 RED 12.70 304L ESGOTADO.jpg
to
RED 12.70 304L 586999 ESGOTADO.jpg

Ex.2
345 2016025515 672513 RED 88.90 304L 001 ESGOTADO.jpg
to
RED 88.90 304L 345 2016025515 672513 001 ESGOTADO.jpg



07/04-17 20:05
#7 : 07/04-17 21:58
Tester123
Tester123
Posts: 92
Reply to #6:
This should do the trick:

Method: Replace
Text to be replaced: ^([\d\s]+)(\w+)\s(.+?\s.+?)\s(.+)$
Replace with: \2 \3 \1 \4
Use regular expression: checked


07/04-17 21:58