From: Michael Campbell Date: 2003-04-09T04:16:37+09:00 Subject: Re: Can someone explain what's happening here? (String#gsub question) --- Yukihiro Matsumoto wrote: > Hi, > > In message "Can someone explain what's happening here? (String#gsub > question)" > on 03/04/09, Michael Campbell > writes: > > |What's going on here? > | > |"hello".gsub(/([aeiou])/,�'<\1>') => hll > | > |"hello".gsub(/([aeiou])/,�"<\1>") => h<^A>ll<^A> > > \1 in double quoted string is considered as \001 (^A) before > reaching gsub. Ok, I get that; thanks. "<\\1>" did what I expected. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com