// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.regex.Pattern;

public class RegexMultiLine {
    public static void main(String[] args) {
        Pattern p = Pattern.compile(".*", Pattern.DOTALL);
        String value = "bla \n\n test 123";
        if (p.matcher(value).find()) {
            System.out.println("OK");
        }
    }
}
