My string of data is this:
(wlc-nyhy30-a) *
I need to strip off the beginning parenthesis and the end parenthesis that matches exactly ) *.
My end string should be:
wlc-nyhy30-a
I can easily strip off the beginning ( like below, but I'm having a very hard time getting Perl to match and remove end of line ) *
Here is the first part that works:
$output{'prompt'} =~ s/^\(//;
Appreciate any help. Thanks in advance.