But doesn't that still give you an undefined $1 that needs to be 'fixed' sooner or later?
>perl -wMstrict -le "'AZ' =~ /A( [^Z]*)?Z/; print qq{'$1'}; " Use of uninitialized value $1 in concatenation (.) or string at ... ''
'Elegance', admittedly protean, would yet seem to require avoiding this extra step.
In reply to Re^4: This regexp made simpler
by AnomalousMonk
in thread This regexp made simpler
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |