Use sed -e instead of -E
use regex triplet, add unit test
Merge pull request #412 from koenpunt/fix-sed

Use sed -e instead of -E