fork(5) download
  1. s = 'lorem.ipsum@gmail.com'
  2. puts s.sub(/\A(..)(.*)@(.*)(..)\z/) {
  3. $1 + "*"*$2.length + "@" + "*"*$3.length + $4
  4. }
Success #stdin #stdout 0s 28824KB
stdin
Standard input is empty
stdout
lo*********@*******om