I'd be interested in hearing why you think your solution is better than ^\[.*?\]. I think that the non-greedy "?" eliminates all of the potential .* issues in this case.
Of course, I haven't benchmarked the solutions yet.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: Re: Re: Re: Re: Reducing a line read into $_
by davorg
in thread Reducing a line read into $_
by locked_user mr_leisure
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |