From: 7stud -- Date: 2012-09-01T05:07:25+09:00 Subject: Re: Can someone explain this string substitution issue to me? > the global variable $+, which is the last match > from a successful regex match, which in your case is nil. That should read: ...the global variable $+, which is the last match from a *previous* successful regex match, which in your case is nil. -- Posted via http://www.ruby-forum.com/.