From: 7stud -- Date: 2012-12-21T16:40:23+09:00 Subject: Re: Perl to Ruby: regex captures to assignment. > That works, but it needs another "[-]?" in the second group to handle > negative numerators, or whole numbers: Right. I would try to capture it out front so that I wouldn't have to repeat myself. -- Posted via http://www.ruby-forum.com/.