Subject: Re: [Name Mangler Talk] Need help with renaming files/folders

From: [email-masked]
Date: Fri, 29 Sep 2017 02:59:30 -0700 (PDT)

Hi Rob, Thx it worked :)

Op vrijdag 29 september 2017 00:34:51 UTC+2 schreef Many Tricks:
>
> On Sep 28, 2017, at 7:11 AM, [email-masked] <javascript:> wrote:
>
> Campagne!@#$%^&*()_+test-12013 Dier
> I would like to remove the following characters: !@#$%^&*()+
> I would like to keep the space, underscores ( _ ) and the hyphen-minus
>  (-) 
>
>
> I'm no regex wizard, but couldn't you do this by just listing the 
> characters you want to remove, instead of the ones you want to keep?
>
> Find: [\\!@#$%^&*()+]+ (with the regex box checked, obviously)
> Replace: leave blank
>
> You need to escape the backslash with another, but other than that, that's 
> just the list of characters you want removed, with a trailing plus to 
> indicate one or more matches. This seems to work on your test file, but 
> please have a backup of your files before you try it on the full set!
>
> regards;
> -rob.
>

---

From: Rob Griffiths <[email-masked]>
Date: Thu, 28 Sep 2017 15:34:49 -0700

On Sep 28, 2017, at 7:11 AM, [email-masked] wrote:

> I would like to keep the space, underscores ( _ ) and the hyphen-minus (-) 

I'm no regex wizard, but couldn't you do this by just listing the characters you want to remove, instead of the ones you want to keep?

You need to escape the backslash with another, but other than that, that's just the list of characters you want removed, with a trailing plus to indicate one or more matches. This seems to work on your test file, but please have a backup of your files before you try it on the full set!

regards;
-rob.

---

From: [email-masked]
Date: Thu, 28 Sep 2017 07:11:32 -0700 (PDT)

Hi Rob,
 
it are over more than 5000 files, but I can give you an example of a file.

Filename: 

Best regards,

Friso 

Op donderdag 28 september 2017 15:42:51 UTC+2 schreef Many Tricks:
>
> On Sep 28, 2017, at 6:36 AM, [email-masked] <javascript:> wrote: 
>
> > Strangs, i upload the screenshot again. see attachment. 
>
> It worked that time; I think Google Groups has troubles if the screenshot 
> isn't the last item. Also, I need to know the filenames, too—I'm still 
> unclear on the before and desired after names you're trying to create. What 
> characters do you want to remove, and which do you want to keep? Is it as 
> simple as this ... ? 
>
> Remove any non-alpha characters except space, hyphen, and underscore 
>
> -rob.

---

From: Rob Griffiths <[email-masked]>
Date: Thu, 28 Sep 2017 06:42:49 -0700

> Strangs, i upload the screenshot again. see attachment.

It worked that time; I think Google Groups has troubles if the screenshot isn't the last item. Also, I need to know the filenames, too—I'm still unclear on the before and desired after names you're trying to create. What characters do you want to remove, and which do you want to keep? Is it as simple as this ... ?

-rob.

---

From: [email-masked]
Date: Thu, 28 Sep 2017 06:36:25 -0700 (PDT)

Op donderdag 28 september 2017 15:16:55 UTC+2 schreef Many Tricks:
>
> On Sep 28, 2017, at 6:12 AM, [email-masked] <javascript:> wrote:
>
> I am trying to remove characters from files and folders. Because OneDrive 
> can't sync certain characters in folders/files.
> I'm use Name Mangler with option Find and Replace.(see screenshot)
>   
>
>
> Unfortunately, the screenshot didn't come through; can you try it again?
>

Hi Rob,

regards,

Friso

---

From: Rob Griffiths <[email-masked]>
Date: Thu, 28 Sep 2017 06:16:53 -0700

On Sep 28, 2017, at 6:12 AM, [email-masked] wrote:

> I am trying to remove characters from files and folders. Because OneDrive can't sync certain characters in folders/files.

regards;
-rob.

---

From: [email-masked]
Date: Thu, 28 Sep 2017 06:12:30 -0700 (PDT)

Hi, 

  
 The string I I'm using is [^0-9a-zA-Z]

This solution isn't perfect cause I also would like to keep spaces within 
my files/folders. Also I would like to remain the - and _ in the name of 
files/folders.

Can anyone help me with this?

Best regards,

Friso