in reply to Why [[:alpha:]] doesn't involve diacritic characters in replace expression?
How about if we use the character class for this?
I think what you found is either a bug in perl, or a bug in the documentation. [[:^alpha:]] and [^[:alpha:]] should work the same by my reading of perlre. But, apparently, it isn't working the same.$str =~ s/[^[:alpha:]]//g; #i isn't needed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why [[:alpha:]] doesn't involve diacritic characters in replace expression?
by graff (Chancellor) on Oct 25, 2008 at 17:32 UTC |