in reply to [untitled node, ID 154894]
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Non alphabet characters
by Chmrr (Vicar) on Mar 28, 2002 at 05:42 UTC | |
by IlyaM (Parson) on Mar 28, 2002 at 09:45 UTC |