Character Translations How-To

Bulk Rename Utility How-To's

Re: Character Translations How-To

Postby simonb » Fri Jan 10, 2025 1:05 am

Hello can you advise how to simply strip any emoji out of filenames?

For example I have some Ytube downloads and they cannot be accessed in some players due to file names. I need to remove any emojis but in a long list of file names there may be multiple symbols in different positions. I simply want to remove/replace them and cannot fathom which part of the software can do this (if at all?)

e.g.

???? LET'S RACE + More Experiments At Home Science Max NEW COMPILATION

How to remove "????"

thanks
simonb
 
Posts: 1
Joined: Fri Jan 10, 2025 1:02 am

Re: Character Translations How-To

Postby Admin » Fri Jan 10, 2025 7:18 am

In Replace (3), use

Replace: \regex\[^\x00-\u0370]
With:

Explanation:
[^\x00-\u0370]: This matches any character that is not in the Unicode range from U+0000 (null character) to U+0370 (the character ?).
\x00 represents the start of the Unicode range (U+0000).
\u0370 represents the end of the Unicode range (U+0370, which corresponds to the character ?).
The ^ inside the square brackets negates the match, so it will match all characters outside the range U+0000 to U+0370.
If you want to remove these characters, replace with nothing (leave with empty)
Admin
Site Admin
 
Posts: 2883
Joined: Tue Mar 08, 2005 8:39 pm

Previous

Return to How-To