#!/bin/sh 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'
Standard input is empty
My email is [emailaddr]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!