Advanced Rename: Remove unicode characters from file names?

Discussion related to "Everything" 1.5 Alpha.
Post Reply
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Advanced Rename: Remove unicode characters from file names?

Post by Ralf_Reddings »

I am trying to remove unicode characters from a selected list of file names. My regEx is not so good. I tried
\P{Latin}
but the the
Latin
blocks seems to not have numbers and characters like
_
as part of it, then though this page says it does.

I am essentially looking for something that strips unicode characters and leaves valid window file name characters untouched.

In the below screenshot,
\P{Latin}
strips
1
,
3
,
_
etc from file names:

Image
Any help would be greatly appreciated!
void
Developer
Posts: 16734
Joined: Fri Oct 16, 2009 11:31 pm

Re: Advanced Rename: Remove unicode characters from file names?

Post by void »

To search for filenames with non-ASCII characters:

case:regex:[^\x00-\x7f]



Please try the following advanced rename format:

Check match case.
Check Regular expressions.
Check Ignore extension.
Set the old format to:
[^\x00-\x7f]

set the new format to:
(empty)
Review the new filenames.
Click OK.
hamid56
Posts: 26
Joined: Sun Jul 20, 2014 9:38 am

Re: Advanced Rename: Remove unicode characters from file names?

Post by hamid56 »

dear David
i think it is better to set new format to - or _ because by leaving new format as blank may be produced some duplicate names.
Ralf_Reddings
Posts: 120
Joined: Fri Mar 24, 2023 4:53 pm

Re: Advanced Rename: Remove unicode characters from file names?

Post by Ralf_Reddings »

Brilliant, that gives me exactly what I was trying to figure out, thank you!
Post Reply