From: 7stud -- Date: 2009-08-05T17:38:56+09:00 Subject: Re: remove commas from string 7stud -- wrote: > Inside the block, $1, $2, $3, etc. refer to the matches for each > parenthesized group in the regex. The return value of the block is used > as the replacement. But note that once again, the entire match is replaced by the return value of the block. -- Posted via http://www.ruby-forum.com/.