Yikes! So many backslashes, so many |, when you don't need them:$_[0]=~s/(\.|\-|\(|\)|\[|\]|\{|\}|\?|\/|\\|\^|\*)/\\$1/g;
$_ [0] =~ s!([][.(){}?/\\^*-])!\\$1!g;
Abigail
In reply to Re: Capitalization and Regex
by Abigail-II
in thread Capitalization and Regex
by pekkhum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |