in reply to [perlre] grouping parenthesis capture whole string instead of proper subset... why?
$setstr =~ /(.*)\|\|$/
If you always want to remove two pipes from the end of a line, you could also use the substitute function:
$setstr =~ s/\|\|$//;
Hope this helps
--Foxcub
|
|---|