Help regarding sed Command

Can any one explain me this script

sed -n -e "s/\(string\)/\1\\
/gp" filename | sed -n -e "s/.*\(string\).*/\1/p"

Here string is a pattern to search for in the file

and filename is the name of the file.

Double post, continued here, thread closed.