[#1611] set_trace_func/Array#fetch error — "Nathaniel Talbott" <nathaniel@...>

I've reduced the error I reported in ruby-talk:84013 to the following code:

17 messages 2003/10/11

Re: String#gsub bug?

From: Elliott Hughes <ehughes@...>
Date: 2003-10-03 06:37:45 UTC
List: ruby-core #1576
* means zero or more. Looks like that matched zero. Try + (one or more)
instead. 


 -- elliott

-----Original Message-----
From: Gavin Sinclair <gsinclair@soyabean.com.au>
To: ruby-core@ruby-lang.org <ruby-core@ruby-lang.org>
Sent: Fri Oct 03 07:34:46 2003
Subject: String#gsub bug?

Is this a bug in Ruby or a bug in my brain?  I've stared at it for long
enough.

  "xyz".gsub(/[ \t]*$/, "")    # -> "xyzxyz"
   "xyz".gsub(/[ \t]*$/, "F")  # -> "xyzFxyz"

Ruby 1.8.0, Cygwin.

Slapping my forehead in advance,
Gavin





*********************************************************************
This e-mail and any attachment is confidential. It may only be read, copied and used by the intended recipient(s). If you are not the intended recipient(s), you may not copy, use, distribute, forward, store or disclose this e-mail or any attachment. If you are not the intended recipient(s) or have otherwise received this e-mail in error, you should destroy it and any attachment and notify the sender by reply e-mail or send a message to sysadmin@bluearc.com
*********************************************************************


In This Thread

Prev Next