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

This will fail for a string consisting of a single character, or a string which contains newlines. The first can be fixed with a look-ahead, the second with /s.
Perl 6 projects - links to (nearly) everything that is Perl 6.