I want to get the stuff back between the ( and ).
But ( ) are used for groups, and with the escape \ i get the error:
Pattern p = Pattern.compile("(\(.*\))");
unexpected char: ‘(‘
How can i prevent this?
Wed 13 Oct 2010 20:00:11 +0200 (CEST)
Tue 12 Oct 2010 21:27:48 +0200 (CEST)
Tue 12 Oct 2010 04:44:57 +0200 (West-Europa (zomertijd))
Tue 12 Oct 2010 03:10:22 +0200 (CEST)
Mon 11 Oct 2010 23:10:04 +0200 (CEST)
Mon 11 Oct 2010 20:56:27 +0200 (CEST)
(I used java)
In Java strings, you have to escape the
'\\'character, try: