Sed is So Dead for Regular Expressions

Perl Destroys Sed

If you are trying to get stuff done. Perl destroys sed for most things. Sed cannot do even basic substitution (which people tend to use awk for as well).

perl -pe 's/foo/bar/'
  sed 's/foo/bar/'
  perl -pe 's/([fb])ar/\1ar/'
  sed 💩

See Also