I've got this code in Mathematica that fetches the left or right side of an equation by turning it into pure text then textually getting rid of the other side through regex. I've isolated the faulty pattern and can't understand why it is producing "infinite" backtracking:
x <= func[abcde,1]
I almost thought it was because of the brackets describing some weird, unwanted character set, but whatever characters I substitute with the brackets:
x <= func:abcde,1:
It still infinitely backtracks. The only way out is if "abcde" is shortened to only 4 characters "bcde", "abcd", "cbde"...
I don't get it. What else is to backtrack?
<= matches and that pretty much fixes everything to that point...