Page 2 of 2

Re: Character Translations How-To

PostPosted: Fri Jan 10, 2025 1:05 am
by simonb
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

Re: Character Translations How-To

PostPosted: Fri Jan 10, 2025 7:18 am
by Admin
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)