You may arrive in a situation where you may want to "extract" out text between two words. For example to view the latest changelog (where x.x.x is the latest version) in a CHANGELOG.md file.
Using sed
sed -n -e '/x.x.x/,/0.1.0/ p' CHANGELOG.md |sed -e '1d;$d'