From: "David A. Black" Date: 2009-01-28T21:04:36+09:00 Subject: Re: regexp multiple matches Hi -- On Wed, 28 Jan 2009, Mickael Faivre-Macon wrote: > Hi, > > /(\d+),(\d+)(;(\d+),(\d+))*/ > > This regexp matches are: > 0: (5,1;5,7;3,2) > 1: (5) > 2: (1) > 3: (;3,2) > 4: (3) > 5: (2) > > My question is why ;5,7 is not matched ? What's the string? David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!