in reply to Re: Can I change the definition of '\s'?
in thread Can I change the definition of '\s'?
Also, this wont always work, since perl cannot nest character classes. What about these (albeit contrived) tests?FILTER_ONLY regex => sub { s/\\s/[\\s\xA0]/g };
print "\xA0" =~ /[A-Z\s]/ ? "Yay!\n" : "Hmmm\n"; print '[]' !~ /[A-Z\s]/ ? "Yay!\n" : "Hmmm\n";
-Blake
|
|---|