From: Thomas Adam Date: 2006-10-27T22:28:27+09:00 Subject: Re: a regex On Fri, 27 Oct 2006 22:23:42 +0900 "Alexandru Popescu" wrote: > Hi! > > I have a string in the following form: 2006%2F10%2Fasdfasdf (or more > generic: any_characters+%2Fany_characters+%2Frest_of_it). I am > wondering if I can retrieve the groups 2006, 10, asdfasdf thru a regex > (I confess I couldn't figure it out so far :-( ). > > many thanks, > > ./alex > -- > .w( the_mindstorm )p. > `` [thomas@debian ~]% irb irb(main):001:0> a="2006%2F10%2Fasdfasdf".split('%2F') => ["2006", "10", "asdfasdf"] irb(main):002:0> '' -- Thomas Adam