\n only works on unix-like systems, using the regex (easier) for all interactive commands