I am trying to use regular expressions in python to find carriage returns \r in a string which have no following linefeed \n, thus being a likely error.
However, my regex allways matches, and I do not know why:
>>> import re
>>> cr = re.compile("\r[^\n]", re.X)
>>> rr= rege.search("bla")
>>> rr
<_sre.SRE_Match object at 0x0000000003793AC0>
How would the correct syntax look like?