Basically, I need to strip everything after a # on each line, unless the # does not start a comment.
Thanks
In reply to Removing Comments by Anonymous Monk