> >> Again, in perl I could do something like:
> >> 
> >> $_ = "Dec 12";
> >> (mon, day) = /(\w+) (\d+)/;
> 
> > this = "Dec 12"
> > that = $1 if this =~ /(\w+) (\d+)/
> > other = $2 if this =~ /(\w+) (\d+)/
> 
> 
> str = "Dec 12"
> regex = /(\w+) (\d+)/
> mon, day = regex.match(str).captures
> _, mon, day = regex.match(str).to_a
> 
> 
> In one line:
> 
>   mon, day = /(\w+) (\d+)/.match("Dec 12").captures



Ah hah, #captures was what I was searching for.  Thanks Gavin (and
everyone else that replied.)



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com