I tried this but it doesn\'t work :
[^\\s-]
Any Ideas?
Which programming language are you using? May be you just need to escape the backslash like "[^\\s-]"