I am sorry I am new in Java. I need to match multiline string in Java which looks like:
meno je povinné pole
priezvisko je povinné pole
heslo je povinné pole
email je povinné pole
email nemá platný formát
musíte súhlasiť s podmienkami
And here is the Pattern to match this string.
Pattern p = Pattern.compile("meno.+heslo", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE | Pattern.MULTILINE);
Matcher m = p.matcher(alert.getText().toLowerCase()); // text from the example
What is wrong with that? If I test only the first line it works. So I think problem is in the lines.