The first line contains a space between the two commas; the second one does not. The function fails to recognize an empty field and returns word 2 when I want word 1. This really messed up a script that was processing a CSV file that had some empty fields.
The first line contains a space between the two commas; the second one does not. The function fails to recognize an empty field and returns word 2 when I want word 1. This really messed up a script that was processing a CSV file that had some empty fields.