I am trying to create a pattern matcher for anything other than space, that is it should return true if I find anything other than **space** character, in the entry. I have tried using 

```
String s = "[^ \s]" 

```

as the pattern matcher but it complains as error. What is the correct string to use to generate the pattern matcher?