I am strugling with regex. Let's say I have a test.txt (one byte characters) file (50 bytes, NOTEPAD shows ANSI bottom right):
Code: Select all
testline1
somethingelse
Šmoretext
anotherline
I want to find lines with characters that have MSB bit set (bit 7).
No luck:
Code: Select all
c:\findstr /R "[^\x00-\x7F]" test.txt
Code: Select all
Šmoretext
Code: Select all
C:\>findstr /R "[\x8a]" test.txt
Code: Select all
Őmoretext
anotherline
Code: Select all
Őmoretext
valid characters:
LF: 0x0A
CR: 0x0D
Č: 0xAC
Š: 0xE6
Ž: 0xA6
č: 0x9F
š: 0xE7
ž: 0xA7
and 0x20-0x7f
Any ideas?
Thanks.
Saso
(I really don't have much experiences with regex)