in reply to Seeker of Regex Wisdom (strings which don't form specific patterns)

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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.
I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!
  • Comment on Re: Seeker of Regex Wisdom (strings which don't form specific patterns)
  • Download Code

Replies are listed 'Best First'.
Re^2: Seeker of Regex Wisdom (strings which don't form specific patterns)
by ilcylic (Scribe) on Aug 13, 2015 at 15:14 UTC
    Yeah, sorry, my examples were apparently not as good as I was hoping for. Post updated.