How do I search for a character by its ASCII value?

You can search for a character by its ASCII value by pressing CTRL-V followed by the decimal or hexadecimal or octal value of that character in the search “/” command. To determine the ASCII value of a character you can use the “:ascii” or the “ga” command. For example, to search for the ASCII character with value 188 (??), you can use one of the following search commands:

    /188

    /o274

    /xBC

    /u00bc

You can also search for the character with the decimal/octal/hex number using a collation [] like this:

    /[\d188]

    /[\o274]

    /[\xbc]

    /[\u00bc]

Alternatively, you can use the special atom \%d \%o \%x \%u:

    /\%d188

    /\%o274

    /\%xbc

    /\%u00bc

Or you use digraphs to enter the character. For example enter:

    /CTRL-K14

to search for the above character.

Read free Software Algorithms and Computer Science Books by CodeAhoy Learn.

Introduction to Recursion and Backtracking

Sorting Algorithms

Introduction to C Programming Language

And More...

Speak Your Mind