On Oct 4, Ramprasad A Padmanabhan said: > I have a string like this >$x='a{1}b{21}c{5}d'; ># The numbers in the {} are random and are not of interest > >I want to access all elements from the string 'a' 'b' 'c' & 'd' >How do I do it best ?
I'd do: my @parts = split /{\d+}/, $string; -- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://japhy.perlmonk.org/ % have long ago been overpaid? http://www.perlmonks.org/ % -- Meister Eckhart -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>