<?php $a = ['A', 'aasBABA', 'AFJ837A', 'A_B', 'abc']; var_dump(preg_filter('/^[A-Z_]+$/', '$0', $a));
You have javascript disabled. You will not be able to edit any code.