From: loveajax@... Date: 2008-05-04T01:05:03+09:00 Subject: Backreferences in case statements Hi, I am not sure if this is possible. I have a case statement which checks for a regular expression. For example: case text when /(abc)(.)*/ when /(xyz)(.)*/ end In the above snippet how can I use the instance variables pre_match and post_match? I tried calling these methods without any qualifiers but I got a NoMethodError. Where does Ruby store the MatchData if the matching is done in a case statement? Thanks -subbu