It would be nice to have suggestions on how to do this or any PERL modules that would do better. Thanks.sub Regch{ $_[0]=~s/(\.|\-|\(|\)|\[|\]|\{|\}|\?|\/|\\|\^|\*)/\\$1/g; $_[0]=~s/([a-zA-Z])/[$1]/g; return $_[0]; }
In reply to Capitalization and Regex by pekkhum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |