s{ ( ^ \#[ ]START \n ) ( .*? ) ( ^ \#[ ]END \n ) }{ $1 . ( $2 =~ s/^[ $]*//rg ) . $3 }xsmeg; [download]
In reply to Re: s///g within m//g regions by ikegami in thread s///g within m//g regions by almr