How to search a unicode character using its code point in sublime text
For unicode character whose code point is CODE_POINT
(code point must be in hexadecimal format), we can safely use regular expression of the format \x{CODE_POINT}
to search it.
General rules
For unicode characters whose code points can fit in two hex digits, it is fine to use \x
without curly braces, but for those characters whose code points are more than two hex digits, you have to use \x
followed by curly braces.
Some examples
For example, in order to find character A
, you can use either \x{41}
or \x41
to search it.
As another example, in order to find 我
(according to here, its code point is U+6211
), you have to use \x{6211}
to search it instead of \x6211
(see image below). If you use \x6211
, you will not find the character 我
.
- Zero width space characters can be found via:
\x{200b}
Demo
- Non breaking space characters can be found via:
\xa0
Demo