in reply to Re^2: Regex keeps looping on itself :/in thread Regex keeps looping on itself :/
It gets replaced with the result of the expression. In this case, it gets replaced with 1, the result of print. Remove print TESTOUT