in reply to nbsp in space character class

I have found that   is often represented by the character "\xa0".

So, you could use m/(\s|\xa0)/ or m/[\s\xa0]/.