Change the example split output in a "Non-capturing groupings" example
from ('12','a','34','b','5') to ('12','a','34','a','5'). This way
it'll match the example code that goes along with it:
split /(a|b)+/, "
12aba34ba5"
Reported-by: Antonio Bonifati <antonio.bonifati@gmail.com>
required for some reason:
$x = '12aba34ba5';
- @num = split /(a|b)+/, $x; # @num = ('12','a','34','b','5')
+ @num = split /(a|b)+/, $x; # @num = ('12','a','34','a','5')
@num = split /(?:a|b)+/, $x; # @num = ('12','34','5')