Macro to find ASCII > 127 chars

Macro to find ASCII > 127 chars

40
Basic UserBasic User
40

    Nov 07, 2006#1

    Hi,

    I need to check files for characters with ascii code [decimal] > 127, so I need a macro that will either highlight all such, jump to each such char and allow me to edit it, or at least replace all such chars with a space.
    Is there an easy way to do this?
    I tried some things but all unsuccessful :(

    thanks

    6,684586
    Grand MasterGrand Master
    6,684586

      Nov 07, 2006#2

      That's simple. Search for all characters which are not <= 127 and >= 32 except tab, CR, LF and FF:

      HexOff
      UnixReOff
      Find RegExp "[~^t^r^n^b !"#^$^%&'()^*^+,^-./0-9:;<=>^?@A-Z^[\^]^^_`{|}^~]"

      Can be also done with Unix or Perl regex engine if you preferone of these engines.

      This regex search string can be use also with Find In Files or Replace In Files.
      Best regards from an UC/UE/UES for Windows user from Austria

      40
      Basic UserBasic User
      40

        Nov 08, 2006#3

        Mofi, thanks for showing me the right direction. Indeed I can simply use a regex in the search box, this one works fine
        [\x80-\xFF]{1}
        (using the perl engine)

        Strange enough, the equivalent (as I think)
        [^\x01-\x7F]{1}
        doesn't work