Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #7306
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2016-12-02 20:51 -0800 |
| Message-ID | <8318472d-4632-4a06-b4c7-348316425ffa@googlegroups.com> (permalink) |
| Subject | Ruby Regexp why this expression does not match? |
| From | vunangluc@gmail.com |
I want to use this regex to match any block comment (c-style) in a string. But why the below does not? rblockcmt = Regexp.new "/\\*[.\s]*?\\*/" # match block comment p rblockcmt=~"/* 22/Nov - add fee update */" ==> nil
Back to comp.lang.ruby | Previous | Next — Next 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