Subject: Re: [Name Mangler Talk] Need som renaming help

From: Robin Westergren <[email-masked]>
Date: Wed, 2 Sep 2015 23:34:50 -0700 (PDT)

Thanks! This made it! And thanks to another thread i managed to make a 
perfect sequence identifier for my files. This saved me!

Den onsdag 2 september 2015 kl. 18:41:14 UTC+2 skrev Many Tricks:
>
> On Sep 2, 2015, at 2:10 AM, Robin Westergren <[email-masked] 
> <javascript:>> wrote:
>
> *From*        12-3456-78 Product Name - Color.jpg*       to      *
>  12-3456-78.jpg
> Could someone help me on how to do this? Would make my day!
>
>
> This should work, assuming the format you showed above holds for all the 
> files:
>
> Find & Replace, with "Query is a regular expression" checked. Find value:
>
> ^([^ ]*)\ .*
>
> Replace value:
>
> $1
>
> This basically says "start at the beginning, find anything that's not a 
> space followed by some number of characters, and save that as $1, then find 
> a space followed by anything else." We then just replace the saved $1, 
> which holds everything before the first space.
>
> Keep in mind you may need to add a sequence number if any of those digit 
> series repeat (as you'd wind up with duplicate filenames).
>
> PLEASE test on a  copy of your files!!!!!!!!
>
> regards,
> -rob.
>
>

---

From: Rob Griffiths <[email-masked]>
Date: Wed, 2 Sep 2015 09:41:11 -0700

On Sep 2, 2015, at 2:10 AM, Robin Westergren <[email-masked]> wrote:

> From        12-3456-78 Product Name - Color.jpg       to       12-3456-78.jpg

This should work, assuming the format you showed above holds for all the files:

^([^ ]*)\ .*

Replace value:

$1

This basically says "start at the beginning, find anything that's not a space followed by some number of characters, and save that as $1, then find a space followed by anything else." We then just replace the saved $1, which holds everything before the first space.

Keep in mind you may need to add a sequence number if any of those digit series repeat (as you'd wind up with duplicate filenames).

regards,
-rob.

---

From: Robin Westergren <[email-masked]>
Date: Wed, 2 Sep 2015 02:10:56 -0700 (PDT)

Hi, need som help. Want to rename files like this:

Thanks and best regards, Robin