On the basis of your limited sample, it looks like all you need is to exclude lines that start with a #. Ie:
perl -nle"/^#/ or print" infile > outfile
If there are cases that doesn't work for, post some more samples.
In reply to Re: Seeker of Regex Wisdom (strings which don't form specific patterns)
by BrowserUk
in thread Seeker of Regex Wisdom (strings which don't form specific patterns)
by ilcylic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |