Unlikely to help someone, but anyway.
Archive of posts tagged sed
Smart ranges in sed
If you relly insist...
Pulling out strings
Some ways to "pull out" strings from files
Text replacement in context/out of context
An added twist to the usual search/replace problems.
Look for multiple patterns in files
One of the most FAQ of all times.