Author: moritz
Date: 2010-05-31 22:03:02 +0200 (Mon, 31 May 2010)
New Revision: 31032

Modified:
   docs/Perl6/Spec/S05-regex.pod
Log:
[S05] correct think in .trans example

A zero-width assertion doesn't do us any good here.

Modified: docs/Perl6/Spec/S05-regex.pod
===================================================================
--- docs/Perl6/Spec/S05-regex.pod       2010-05-31 19:50:56 UTC (rev 31031)
+++ docs/Perl6/Spec/S05-regex.pod       2010-05-31 20:03:02 UTC (rev 31032)
@@ -4032,7 +4032,7 @@
                  [' ', '<', '>', '&' ]);
 
     $str.=trans( / \s+ / => ' ' );  # squash all whitespace to one space
-    $str.=trans( / <!alpha> / => '' );  # delete all non-alpha
+    $str.=trans( / <-alpha> / => '' );  # delete all non-alpha
 
 These submatches are mixed into the overall match in exactly the same way that
 they are mixed into parallel alternation in ordinary regex processing, so

Reply via email to