in reply to Character class question
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re:^2 Character class question
by bluethundr (Pilgrim) on Apr 25, 2004 at 21:17 UTC | |
by allolex (Curate) on Apr 25, 2004 at 21:56 UTC | |
by Anomynous Monk (Scribe) on Apr 25, 2004 at 23:50 UTC |