Php Filter Array By Regex Java