From: Dan Doel Date: 2003-08-16T10:21:31+09:00 Subject: Re: ruby-dev summary 21134-21191 Ooo! I know, what about: re = /((?@\d+)|(?@\w+)\s?)+/ m = re.match("1234 hello 56 what are you doing 98") m['numbers'] #=> ["1234", "56", "98"] m['words'] #=> ["hello", "what", "are", "you", "doing"] Is there an alternate solution to that that doesn't use multiple regexps? - Dan