As for your regexp question, you are missing a backslash (\) before the letter "W". So, the propper line would be
That would match anything that is not a number (0-9) or a character - but the characters a-z are captured by the if higher up in the code. (Note that this will have problems if input contains Unicode characters)...} elsif (/[\W_]/) { # other chars
In reply to Re: Character class question
by matija
in thread Character class question
by bluethundr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |