Hi,

i am trying to extract string between [[]] from following string.
String e = "This is[[my small]]example[[string which I'm going]] to use for pattern matching";
by using following code :
Pattern pattern = Pattern.compile("[[(.*?)]]");
Matcher matcher = pattern.matcher(e);
while (matcher.find())
{
System.out.println(matcher.group());
}

}
Should print result as :
my small and string which I'm going