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
In reply to Re2: Can I change the definition of '\s'?
by blakem
in thread Can I change the definition of '\s'?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |