<?php
$array = ["ab", "def", "ghi"];
$excludeKeywords = ["ab", "de"];
$pattern = implode("|", $excludeKeywords);
// Positive (Reindex)
// Negative (Reindex)
PD9waHAKCiRhcnJheSAgICAgICAgICAgPSBbImFiIiwgImRlZiIsICJnaGkiXTsKJGV4Y2x1ZGVLZXl3b3JkcyA9IFsiYWIiLCAiZGUiXTsKCiRwYXR0ZXJuID0gaW1wbG9kZSgifCIsICRleGNsdWRlS2V5d29yZHMpOwokcmVzdWx0ID0gcHJlZ19ncmVwKCIvJHBhdHRlcm4vaSIsICRhcnJheSk7CgovLyBQb3NpdGl2ZSAoUmVpbmRleCkKcHJpbnRfcihhcnJheV92YWx1ZXMoJHJlc3VsdCkpOwoKLy8gTmVnYXRpdmUgKFJlaW5kZXgpCiRyZXN1bHQgPSBhcnJheV9kaWZmKCRhcnJheSwgJHJlc3VsdCk7CnByaW50X3IoYXJyYXlfdmFsdWVzKCRyZXN1bHQpKTs=