in reply to Parsing out first names
/(.*) [a-zA-Z]\.?\z/ [download]
And I think you mean to have (), not [], in the assignment to @names.