in reply to Re^8: Regex arrow key problem
in thread Regex arrow key problem

If so, the if would work. Can't have it both ways. Which one is it? Does $input contain "\e[C\n" or does the if work?

Note that it shouldn't contain what you said it contains. There shouldn't be a trailing "\n".