Use sed -e instead of -E
use regex triplet, add unit test