perl -e '$in=quotemeta("+44");$out=$in; $out=~s/\Q$in\E//;print "Result: |$in|$out|\n";' Result: |\+44||
perl -e '$in="+44";$out=$in; $out=~s/\Q$in\E//;print "Result: |$in|$out|\n";' Result: |+44||
In reply to Re^3: Substitution, '+' in first position of Pattern
by suhailck
in thread Substitution, '+' in first position of Pattern
by flexvault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |