// 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 Negative {
    private static Pattern p = Pattern.compile("^Directive \\d{4} ((?!Home Page$).)*", Pattern.CASE_INSENSITIVE);
    public static void test(String data) {
        System.out.println(p.matcher(data).matches());
    }
    public static void main(String[] args) {
        test("Directive 1234 hello world");
        test("Directive 1234 hello world Home Page");
    }
}
