Here's my string:
"5th => fifth\n6th => sixth\n7th => seventh\n8th => eighth\n9th => ninth\n10th => tenth\n11th => eleventh\n12th => twelfth\n"
It was read from a .txt file, and the output above is what it prints. The "\n" represents newline. In the text file, I would have:
5th => fifth
6th => sixth
I've tried substitution_regex = re.compile(r"(?==>(.*?)\\)"), which according to this link should work, but when I do
substitution_regex.search(string), I get None.
Why is that?