From: Curt Sampson Date: 2002-04-26T19:12:05+09:00 Subject: Parsing Repeating Regexp Matches I've got a string like this: "{foo} {bar} {something else} {and so on}" And I want to parse it into an array that looks like this: ["foo", "bar", "something else", "and so on"] I can't seem to figure out the clever way of doing this in Ruby. Can anyone help me? I tried to do it with a repeating regexp match along the lines of "({[^}]+} ?)+", but if it's possible to do it that way, the exact method is eluding me. BTW, this this is user input, so no evals or anything like that, please. cjs -- Curt Sampson +81 90 7737 2974 http://www.netbsd.org Don't you know, in this new Dark Age, we're all light. --XTC