remove \n from regex in pearsplit