Easy question about search japanese characters

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Natsu
Posts: 4
Joined: Fri Feb 05, 2021 2:00 pm

Easy question about search japanese characters

Post by Natsu »

Hello,
I'm recently using this amazing program for searching files and I have a question.

I want to search any folder and file with a filename length of 35 japanese characters or at last it has 35 japanese characters.

Someone know how to do it?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Easy question about search japanese characters

Post by NotNull »

I don't consider this an easy question - not familiar with the Japanese language - but will try to help you anyway:

If you want to find *any* file-/folder name with at least 35 characters, you can use the following search query:

Code: Select all

len:>34
Specifying Japanese characters is a little harder.
With Regular Expresions you can define a range of unicode characters that should be in your filename.
The Japanese (Kanji) characters are in the range 4e00 - 9fcf


With that, this will find a filename with length 35 or more and contains at least one Japanese character:

Code: Select all

len:>34  regex:[\x{4e00}-\x{9fcf}]

And this one finds a filename with at least 35 Japanese characters in a row:

Code: Select all

len:>34  regex:[\x{4e00}-\x{9fcf}]{35}
And this one finds a filename with at least 35 Japanese characters or spaces in a row:

Code: Select all

len:>34  regex:[\s\x{4e00}-\x{9fcf}]{35}

That is all help I can offer you. Maybe someone familiar with the Japanese language can help with the rest.
Good luck!
Natsu
Posts: 4
Joined: Fri Feb 05, 2021 2:00 pm

Re: Easy question about search japanese characters

Post by Natsu »

It works perfectly!!!!. Thank you very much!!!!
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Easy question about search japanese characters

Post by NotNull »

That is a pleasant surprise! :thumbsup:

BTW, for others with a similar problem: which search query helped you the most?
Post Reply