in reply to [perlre] grouping parenthesis capture whole string instead of proper subset... why?
or by introducing leaning toothpick (or cross-eyed plumbing in the case of pipes) syndrome:use strict; my $string="altcategory=||"; $string =~ /(.*)\Q||\E$/; print $1;
$string=~/(.*)\|\|$/;
CU
Robartes-
|
|---|