[help] how to remove all emojis from filenames in advanced rename ??

Discussion related to "Everything" 1.5 Alpha.
Post Reply
asamirid
Posts: 131
Joined: Sat Oct 13, 2018 12:28 pm

[help] how to remove all emojis from filenames in advanced rename ??

Post by asamirid »

greetings..

i wanna do some filenames cleanup to a list of 3000+ of missy named files if anyone can help or advice..

i want to remove all "emojis characters" in one step if possible !!

and also remove any weird characters other than letters, numbers, spaces, and underscores, note that files names has a mandatory "non latin letters"..

and finally and wanna trim duplicated characters like the double or triple spaces or dashes or underscores like these..
"..." and " ---" and "___"..

any help is appreciated and thank you.
NotNull
Posts: 5769
Joined: Wed May 24, 2017 9:22 pm

Re: [help] how to remove all emojis from filenames in advanced rename ??

Post by NotNull »

asamirid wrote: Fri Feb 14, 2025 2:14 pm i want to remove all "emojis characters" in one step if possible !!
- Search for:

Code: Select all

file:  regex:[\x{1F300}-\x{1F6FF}\x{1F900}-\x{1F9FF}\x{2600}-\x{26FF}\x{2700}-\x{27BF}]
- Select all files you want to remove emojis from (CTRL + A for all files)
- Press F2 to rename them
- Uncheck all checkboxes
- Check Regular expressions
- Old Format:
[\x{1F300}-\x{1F6FF}\x{1F900}-\x{1F9FF}\x{2600}-\x{26FF}\x{2700}-\x{27BF}]

- New Format: leave empty
- Check New filenames
- If all as expected, press the OK button.


asamirid wrote: Fri Feb 14, 2025 2:14 pm and finally and wanna trim duplicated characters like the double or triple spaces or dashes or underscores like these..
"..." and " ---" and "___"..
- For multiple spaces, search for:

Code: Select all

file: regex:" {2,}"
- Select all files you want to remove double or more spaces from (CTRL + A for all files)
- Press F2 to rename them
- Uncheck all checkboxes
- Check Regular expressions
- Old Format:
{2,}
(first character is a space).
- New Format:
(type a space)
- Check New filenames
- If all as expected, press the OK button.


- For multiple underscores, search for:

Code: Select all

file: regex:"_{2,}"
- Select all files you want to remove double or more underscores from (CTRL + A for all files)
- Press F2 to rename them
- Uncheck all checkboxes
- Check Regular expressions
- Old Format:
_{2,}

- New Format:
_

- Check New filenames
- If all as expected, press the OK button.


asamirid wrote: Fri Feb 14, 2025 2:14 pm and also remove any weird characters other than letters, numbers, spaces, and underscores, note that files names has a mandatory "non latin letters"..
I'm not sure what you mean by that. Please specify further, including some examples.
asamirid
Posts: 131
Joined: Sat Oct 13, 2018 12:28 pm

Re: [help] how to remove all emojis from filenames in advanced rename ??

Post by asamirid »

NotNull wrote: Fri Feb 14, 2025 3:36 pm

Code: Select all

file:  regex:[\x{1F300}-\x{1F6FF}\x{1F900}-\x{1F9FF}\x{2600}-\x{26FF}\x{2700}-\x{27BF}]
thank you @NotNull for the help,

please explain this regex code to me, iam familiar with regex codes in general, but this one is not clear to me.
asamirid
Posts: 131
Joined: Sat Oct 13, 2018 12:28 pm

Re: [help] how to remove all emojis from filenames in advanced rename ??

Post by asamirid »

NotNull wrote: Fri Feb 14, 2025 3:36 pm
asamirid wrote: Fri Feb 14, 2025 2:14 pm and also remove any weird characters other than letters, numbers, spaces, and underscores, note that files names has a mandatory "non latin letters"..
I'm not sure what you mean by that. Please specify further, including some examples.
like this example.."H , EL&💙_شيرين- _ (Official Audio ) 💔_@sherine.m4a"

this is a filename with english and arabic characters, special characters ", & @", and emojis.

i want to remove the special characters like ", & @" and the emojis "💙 💔 "

and keep the english and arabic characters.
NotNull
Posts: 5769
Joined: Wed May 24, 2017 9:22 pm

Re: [help] how to remove all emojis from filenames in advanced rename ??

Post by NotNull »

asamirid wrote: Fri Feb 14, 2025 4:58 pm i want to remove the special characters like ", & @" and the emojis
For emojis see previous answer. The rest, same priciple as before:
- Search for regex:[,&@]
- Old Format: [,&@]
- New Format: (empty)


The "emojis-regex" are Unicode character ranges that contain emoji characters.
Post Reply