Subject: Re: How the regular expression to match "//"?
From: Brian Candler <b.candler pobox.com>
Date: Thu, 16 Sep 2010 23:22:28 +0900
References: 369898
In-reply-to: 369898
> if line =~ /^////.*/
if line =~ /^\/\//
if line =~ %r{^//}
(note that the .* does nothing in your original regexp, i.e. it can be
removed without changing the behaviour)
--
Posted via http://www.ruby-forum.com/.