Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6866
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Robert Klemme <shortcutter@googlemail.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: unterminated string meets end of file |
| Date | Mon, 12 Aug 2013 21:15:42 +0200 |
| Lines | 19 |
| Message-ID | <b6sqj2Fh2goU1@mid.individual.net> (permalink) |
| References | <82f9d89b-33da-48cc-adc8-1a6776f29050@googlegroups.com> <d651cbfc-f251-4dea-a676-cbf0f6ac01a5@googlegroups.com> <e4584c14-244d-4dd1-9162-870902ff41c6@googlegroups.com> <400f418c-42f0-474e-a5c1-d230136115a9@googlegroups.com> <87bo589dz3.fsf@xts.gnuu.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net 5C4LzxX7IN+PlTB1MPOZVALhoUMOKmmVhAoQsTS1ms8wVcnWw= |
| Cancel-Lock | sha1:C8taLjkbJWYa2xJAnEdZNj2kYq8= |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
| In-Reply-To | <87bo589dz3.fsf@xts.gnuu.de> |
| X-Antivirus | avast! (VPS 130812-0, 12.08.2013), Outbound message |
| X-Antivirus-Status | Clean |
| Xref | csiph.com comp.lang.ruby:6866 |
Show key headers only | View raw
On 08.08.2013 21:31, Simon Krahnke wrote: > * Andi Altendorfer <iboard.cc@gmail.com> (13:07) schrieb: > >> puts 'some." string'.gsub(/(\s+)?\.\"/, ' ').gsub(/\ +/,' ') > > What are parentheses for? And the question mark? /\s*\.\"/? And why escape a double quote in a regexp? And what about following spaces? irb(main):002:0> 'some." string'.gsub(/\s*\."\s*/, ' ') => "some string" Cheers 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
unterminated string meets end of file div n <divya.n25@gmail.com> - 2013-08-07 04:46 -0700
Re: unterminated string meets end of file Andi Altendorfer <iboard.cc@gmail.com> - 2013-08-07 06:13 -0700
Re: unterminated string meets end of file div n <divya.n25@gmail.com> - 2013-08-08 02:23 -0700
Re: unterminated string meets end of file Andi Altendorfer <iboard.cc@gmail.com> - 2013-08-08 04:07 -0700
Re: unterminated string meets end of file Simon Krahnke <overlord@gmx.li> - 2013-08-08 21:31 +0200
Re: unterminated string meets end of file Robert Klemme <shortcutter@googlemail.com> - 2013-08-12 21:15 +0200
csiph-web