I need to filter out leading and trailing spaces from user input (web form).
I'm noticing some users entering shifted-spaces (0xA0) on occasion. \s doesn't match a shifted-space.
Since this sort of regex filtering is performed in many areas of our code base, adding 0xA0 to the definition of \s seems like a good approach.
Is it easy? Can it be done on a per-script basis? Can it be done without hacking the perl source?