From: Phil Cooper-king Date: 2009-09-08T16:49:36+09:00 Subject: Re: regular expression NOT operator > My advice would be to keep it (relatively) straightforward by doing > something like this as you scan the lines of text: > > comment_re = /^\s*#/ > > if comment_re.match(line) > # treat line as a comment > else > # line is not a comment > end > > Thanks David.A, I'll give Oniguruma a look but I think I'll go with your suggestion Thanks G_F_ for pointing out my mistake. -- Posted via http://www.ruby-forum.com/.