and to do both requested operations at once:
$str =~ s/^&|&$//g;
but that has just given him the fish and if this is homework then he gets the kudos (possibly) without learning anything.
In reply to Re^2: Reg. Expression - Replace " from string
by GrandFather
in thread Reg. Expression - Replace " from string
by dani_cv_74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |