Subject: Re: [Name Mangler Talk] Trimming trailing periods

From: Virgilio <[email-masked]>
Date: Mon, 24 Oct 2016 02:46:09 -0700 (PDT)

Hi Rob,

Thanks a lot! 
Worked like a charm

Kind regards
Virgilio

On Saturday, October 22, 2016 at 4:04:06 PM UTC+2, Many Tricks wrote:
>
> On Oct 22, 2016, at 5:30 AM, Virgilio <[email-masked] <javascript:>> 
> wrote: 
>
> > Windows noob here, I'm moving data from a afp share to a smb share, but 
> there are a lot of files with invalid smb chars. 
> > I was able to remove most of them with Name manglar, but I'm having 
> problems removing periods ate the end of the file. 
> > I have tried adjusting the trim whitespaces snippet, but I kinda failed 
> with it. 
>
> Try this find/replace, with “Query is a regular expression” checked: 
>
> Find: \.$ 
> Replace: Leave empty 
>
> Make sure “Keep extension intact” is still checked. 
>
> Basically, this says “find a period (the \.) at the end ($) of the 
> filename.” Name Mangler won’t include the .extension in its calculation, so 
> this just removes the trailing period. 
>
> ** PLEASE test on a copy of your files, or make sure you have a good 
> backup first, just in case this doesn’t work for you. ** 
>
> > P.s. I think I might has posted the same question before, But i'm not 
> seeing it in the list 
>
> I don’t see anything in the archives either, so not sure what might have 
> happened. 
>
> regards, 
> -rob.

---

From: Rob Griffiths <[email-masked]>
Date: Sat, 22 Oct 2016 07:04:03 -0700

On Oct 22, 2016, at 5:30 AM, Virgilio <[email-masked]> wrote:

> Windows noob here, I'm moving data from a afp share to a smb share, but there are a lot of files with invalid smb chars. 
> I was able to remove most of them with Name manglar, but I'm having problems removing periods ate the end of the file. 
> I have tried adjusting the trim whitespaces snippet, but I kinda failed with it.

Find: \.$
Replace: Leave empty

Basically, this says “find a period (the \.) at the end ($) of the filename.” Name Mangler won’t include the .extension in its calculation, so this just removes the trailing period.

** PLEASE test on a copy of your files, or make sure you have a good backup first, just in case this doesn’t work for you. **

> P.s. I think I might has posted the same question before, But i'm not seeing it in the list 

I don’t see anything in the archives either, so not sure what might have happened.

regards,
-rob.

---

From: Virgilio <[email-masked]>
Date: Sat, 22 Oct 2016 05:30:52 -0700 (PDT)

Hi Guys,

Has anyone done it before and do you have a wokring snippet?

Kind regards Virgilio