in reply to Re: chopping a string into slices - is there a more elegant way to do it?
in thread chopping a string into slices - is there a more elegant way to do it?

Thanks a lot to all of you for all the solutions provided. I think I will go for the //g version - I had completely forgotten that I can use the g modifier also with pattern matching, not only with pattern substitution. Really neat and compact solution!

-- 
Ronald Fischer <ynnor@mm.st>
  • Comment on Re^2: chopping a string into slices - is there a more elegant way to do it?