my @array = map { s/regex/replacement/ } @input;