Jan-27-2023, 05:49 AM
What is irec? Is it str or bytes? If it is bytes, your search pattern must also be bytes. Either way you should use a raw literal for the pattern to prevent "\x" being interpreted as an escape sequence marking the start of a hexadecimal number.
xrefstart=irec.find(r"\x - \xo ")