Grep is nice, but ....... simple as hell. I think OP needs something more complex.
Separate names with a comma.