in reply to Re: Re: Re: Re: A complex recursive regex,help
in thread A complex recursive regex,help

An example where mine falls over, but I think tachyon's wouldn't.

$t = "xyxxy|xx|xy|xx|yy|yxxy xx x" $t =~ s[(?<!x)(x)(x)(?!x)][$1 $2]g; print $t xyx xy|x x|xy|x x|yy|yx xy x x x

Examine what is said, not who speaks.

The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.