trying to answer my own question here, but im still struggling

if this doesnt work then i will mock up an example, i just thought that my description may have been good enough withough having to waste time making an example table.
i found on this site
Sed - An Introduction and Tutorial that you can create ranges by patterns. the example code is:
Code:
sed '/start/,/stop/ s/#.*//'