($result = $htmlline) =~ s/(.+?)/$1/; $result =~ s//\n/g; #### ( $result = $htmlline ) =~ s/{(.+?)}{join("\n", split(//, $1))}eg;