From: Harry Kakueki Date: 2007-07-31T23:32:32+09:00 Subject: Re: Multiple matching with ()* On 7/31/07, Alessandro Re wrote: > Thanks, but i need to match the pattern OR don't match anything. > "lol1a2vasd".scan(/\d?\w/) => ["l", "o", "l", "1a", "2v", "a", "s", "d"] > while i need to be sure that the pattern begins with a regex "x" and > ends with "z" str = "lol1a2vasd" p str.scan(/\d\w|\w{3}/) Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/