Amele Forever gibi görünebilir ama ilk aklıma gelen cözüm bu oldu
php kodu test etmek için :
http://phptester.net/
regex kodunu test etmek için :
https://regex101.com/r/k9erEH/1
$re = '/(.*?)(edge)(.*?)(2\/18\/2019 12:00:00)/m';
$str = 'unify-edge-global,2/18/2019 12:00:00 AM,AUC
ali-ahmad,2/19/2019 12:00:00 AM,AUC
health-e,2/20/2019 12:00:00 AM,AUC
bprnow,2/21/5019 12:00:00 AM,AUC
dd-edge-erpadla-i6aiz,2/18/2019 12:00:00 AM,AUC';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
echo '<pre>';
var_dump($matches);
echo '</pre>';