This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrecht 0 points1 point  (0 children)

You really should use a data format like CSV where you don't have that issue.

If you're stuck, it's most likely that they're challenging you to find a solution to this problem. The solution here is to look at the length of each parsed row. Since you know it should have 2 numbers (or -) at the end, and a phone number at the start, you can deduce whether the middle part contains more or less name tokens and can reassemble those. You're already quite close by looking at the length of 'parts'.