lineIdentifier:dasda creationDate:[08/06/2018 00:00:00 TO *] text: [dasda, lll]
With regex
I would like to get back only data in creationDate
08/06/2018 00:00:00
and *
This is my pattern but does not work
Pattern r = Pattern.compile("\\[(\\w*)\\]");
Matcher m = r.matcher(result);
if (m.find( )) {
System.out.println("Found value: " + m.group(0) );
}else {
System.out.println("NO MATCH");
}
any idea what i am doing worng?