From: Xeno Campanoli Date: 2006-04-27T03:21:03+09:00 Subject: Stumped: How do I iterate over regular expression matches? I looked for an iterator, and there may be something, but I don't recognize it. I also tried: while (x =~ /something/ ) p $1 end and it just printed out the same match over and over. Perl does this very nicely, but google and pickaxe are not helping me do it in Ruby. Sorry if this is obvious. xc