fork(27) download
  1. #!/bin/sh
  2.  
  3. echo "My email is abc@example.com" | sed -r 's/[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[A-Za-z]{2,4}/[emailaddr]/g'
Success #stdin #stdout 0.02s 5268KB
stdin
Standard input is empty
stdout
My email is [emailaddr]