what's wrong with this reg. ex.

Hey,I'm trying to match the "word" :) in a string.I use the following code: String.matches(".*:\\).*");But I get a PatternSyntaxException, so somethings not right with that code. But I can't find the error.Can someone help me?
[263 byte] By [Jochema] at [2007-10-1 2:21:12]
# 1
String.matches(regex) is not correct syntax, it should be stringobject.matches(regex)This works for me:String str = "abcd:)1234";str.matches(".*:\\).*");
ChuckBinga at 2007-7-8 11:29:34 > top of Java-index,Administration Tools,Sun Connection...
# 2
yeah I know, otherwise i shouldn't get an Exception, because it can't compile (matches is not a static method)but the code:String blaat;blaat.matches(".*:\\).*") doesn't work for me :(
Jochema at 2007-7-8 11:29:34 > top of Java-index,Administration Tools,Sun Connection...
# 3
oeps,.String blaat = "asdfasdf:)";i mean :P
Jochema at 2007-7-8 11:29:34 > top of Java-index,Administration Tools,Sun Connection...
# 4
I have Java 5. Copy and paste my post and try using that.
ChuckBinga at 2007-7-8 11:29:34 > top of Java-index,Administration Tools,Sun Connection...