From: Austin Ziegler Date: 2003-05-12T22:18:00+09:00 Subject: Re: Regexp: why does (re)* return only last repetition? On Mon, 12 May 2003 17:39:19 +0900, Robert Klemme wrote: > Clifford Heath: >> Robert Klemme wrote: >>> Clifford Heath: >>>> re = Regexp.new('[a-z\\]') >>> Why not simply do >>> re = /[a-z\\]/ >> Because it was part of a larger extended re. > But you can still use re = /.../ instead of re = Regexp.new '...' Again, if and only if one is specifying the regular expression statically. -austin -- Austin Ziegler, austin@halostatue.ca on 2003.05.12 at 09:15:33