Just use another character class than \s. Non-word, \W, might be what you want.
If all else fails you can make a custom character class with square brackets. See perlre, the regex doc.
After Compline,
Zaxo
In reply to Re^3: calculating lines
by Zaxo
in thread calculating lines
by Yoda_Oz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |