Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #7309
| 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 <shortcutter@googlemail.com> |
| 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 | <eafl0iFc5rkU1@mid.individual.net> (permalink) |
| References | <8318472d-4632-4a06-b4c7-348316425ffa@googlegroups.com> <eafd5kFabknU1@mid.individual.net> <db77c550-f562-4b2f-94ce-0aafc204f54d@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 | <db77c550-f562-4b2f-94ce-0aafc204f54d@googlegroups.com> |
| Xref | csiph.com comp.lang.ruby:7309 |
Show key headers only | View raw
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/
Back to comp.lang.ruby | Previous | Next — Previous in thread | Find similar
Ruby Regexp why this expression does not match? vunangluc@gmail.com - 2016-12-02 20:51 -0800
Re: Ruby Regexp why this expression does not match? Robert Klemme <shortcutter@googlemail.com> - 2016-12-03 09:13 +0100
Re: Ruby Regexp why this expression does not match? vunangluc@gmail.com - 2016-12-03 00:28 -0800
Re: Ruby Regexp why this expression does not match? Robert Klemme <shortcutter@googlemail.com> - 2016-12-03 11:27 +0100
csiph-web