in reply to Can I change the definition of '\s'?
It can be done using a source filter.
package Filter::BackslashS; use Filter::Simple; use strict; FILTER_ONLY regex => { s/\\s/[\\s\xA0]/g };
Please note that this only changes the meaning of \s in literal regexes.use Filter::BackslashS; print "\xA0" =~ /\s/ ? "Yay!\n" : "Hmmm\n";
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re2: Can I change the definition of '\s'?
by blakem (Monsignor) on Sep 12, 2002 at 03:52 UTC |