sed: -e expression #1, char 0: no previous regular expression

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

Error:

sed: -e expression #1, char 0: no previous regular expression

Seen while testing with empty replacement strings:
sed "s///"

"//" refers to a non-existent previously-compiled regular expression.