enter code here
I don't understand how to capture multiple lines with simple regex:
Pattern pattern2 = Pattern.compile("^.*$", Pattern.MULTILINE);
matcher = pattern
.matcher("11-41 pm, Oct 20, 2014 - Stef G: Ik zal er ook zij \n ttrrttttkkk");
matcher.find();
System.out.println("group=" + matcher.group());
It outputs:
group=11-41 pm, Oct 20, 2014 - Stef G: Ik zal er ook zij
In output, text after carrage return is missing.
How to avoid this?