Path: csiph.com!goblin3!goblin.stu.neva.ru!news.tu-darmstadt.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.ruby Subject: Re: Ruby Regexp why this expression does not match? Date: Sat, 3 Dec 2016 11:27:29 +0100 Lines: 19 Message-ID: References: <8318472d-4632-4a06-b4c7-348316425ffa@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 00W5yiyIUvNQ68mHhdJtwwcLFFrc8WwLtyuvRmzdQGiRs+iqo= Cancel-Lock: sha1:LB5Eg+sNHeh7+sE1uu4AGw3VsJI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Xref: csiph.com comp.lang.ruby:7309 On 03.12.2016 09:28, vunangluc@gmail.com wrote: > Because I dont know how, to escape / in the // form. Use the backslash, Luke. > Note. In dotnet that regex work for me. Note, Ruby != .Net. > What is shortest regex for my purpose? %r{/\*.*?\*/}m /\/\*.*?\*\//m robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/