This is a nitpick, but..
On Fri, Apr 8, 2011 at 9:34 AM, Shawn H Corey <shawnhco...@gmail.com>wrote:

> To get it to capture the sequence of a's and b's, use:
>
>
> @num = split /((?:a|b)+)/, $x;
>
> To get it to not capture any matches, use the non-capture parentheses:
>
>
> @num = split /(?:(?:a|b)+)/, $x;
>

split /[ab]+/, $x; makes this a lot less complex : )

Brian.

Reply via email to