A \w matches a single alphanumeric character, not a whole word. To match a word you'd need to say \w+. If use locale is in effect, the list of alphabetic characters generated by \w is taken from the current locale. See the perllocale manpage. You may use \w, \W, \s, \S, \d, and \D within character classes (though not as either end of a range).
Update - Too little caffiene ... [^\w] is equivalent to \W as Chmrr++ rightly points out below.
In reply to Re: Non alphabet characters
by rob_au
in thread [untitled node, ID 154894]
by Samn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |