Skip to content

Commit

Permalink
fix quantifier modifier thinko
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Oct 5, 2014
1 parent 397fd9c commit 0f87d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regexes.pod
Expand Up @@ -522,7 +522,7 @@ The editor in me wants to fix this example to use the serial comma.

my $ingredients = 'eggs, milk, sugar and flour';

if $ingredients ~~ m/(\w+)% % [\,\s*] \s* 'and' \s* (\w+)/ {
if $ingredients ~~ m/(\w+)+ % [\,\s*] \s* 'and' \s* (\w+)/ {
say 'list: ', $/[0].join(' | ');
say 'end: ', $/[1];
}
Expand Down

0 comments on commit 0f87d07

Please sign in to comment.