email = 'email@domain.com'p email.gsub(/(?<=\A[^@]{2})[^@]+/) { |m| "*" * m.length }
Standard input is empty
"em***@domain.com"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!