Extract text before first comma with regex I want to extract text before first comma (first and last name) from strings like: