in reply to Re: Can I change the definition of '\s'?
in thread Can I change the definition of '\s'?

I think you missed a sub keyword in there...
FILTER_ONLY regex => sub { s/\\s/[\\s\xA0]/g };
Also, this wont always work, since perl cannot nest character classes. What about these (albeit contrived) tests?
print "\xA0" =~ /[A-Z\s]/ ? "Yay!\n" : "Hmmm\n"; print '[]' !~ /[A-Z\s]/ ? "Yay!\n" : "Hmmm\n";

-Blake