Update Removed character class redundacy. That will teach me to at least look at the regex before posting... ; )sub Regch{ $_[0]=~s/(\.|\-|\(|\)|\[|\]|\{|\}|\?|\/|\\|\^|\*)/\\$1/gi; $_[0]=~s/([a-z])/[$1]/gi; return $_[0]; }
In reply to Re: Capitalization and Regex
by The Mad Hatter
in thread Capitalization and Regex
by pekkhum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |