in reply to Re^2: regex for string
in thread regex for string

Because substr is the way to go, but you wanted a regex.

So I gave you a regex, but still used substr.

The real question is, why do you insist on using a regex? it's not a good idea, and far from being an ideal solution.

Perl 6 projects - links to (nearly) everything that is Perl 6.